Class Copy

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.iizigo.handler.CommonHandler
com.iizigo.handler.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 Details

    • ID

      public static final String ID
      The ID, same as class name.
  • Constructor Details

    • Copy

      public Copy()
      Constructor.
  • Method Details

    • 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.
    • setEnabled

      protected void setEnabled(SelectionEnabler se)
      Sets the enabled state for the selection.
      Specified by:
      setEnabled in class CommonHandler
    • doExecute

      protected void doExecute()
      Performs the operation.
      Specified by:
      doExecute in class CommonHandler
    • run

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