Class Copy

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class Copy
    extends CommonHandler
    The Copy property handler.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static java.lang.StringID
      The ID, same as class name.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      Copy()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static org.eclipse.ui.menus.CommandContributionItemcreate​(org.eclipse.ui.services.IServiceLocator serviceLocator, ImageRegistry ir)
      Creates the Command Contribution item.
      protected voiddoExecute()
      Performs the operation.
      static CopygetInstance()
      Gets the instance of the handler.
      static voidrun​(org.eclipse.swt.widgets.Shell shell, org.eclipse.jface.viewers.ISelection selection, java.lang.Runnable callback)
      Runs the handler.
      protected voidsetEnabled​(SelectionEnabler se)
      Sets the enabled state for the selection.
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, removeHandlerListener, setBaseEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ID

        public static final java.lang.String ID
        The ID, same as class name.
    • Constructor Detail

      • Copy

        public Copy()
        Constructor.
    • Method Detail

      • getInstance

        public static Copy getInstance()
        Gets the instance of the handler.
      • create

        public static org.eclipse.ui.menus.CommandContributionItem create​(org.eclipse.ui.services.IServiceLocator serviceLocator,
                                                                          ImageRegistry ir)
        Creates the Command Contribution item.
      • run

        public static void run​(org.eclipse.swt.widgets.Shell shell,
                               org.eclipse.jface.viewers.ISelection selection,
                               java.lang.Runnable callback)
        Runs the handler.