java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
uk.ac.gda.client.experimentdefinition.ui.handlers.AbstractExperimentCommandHandler
uk.ac.gda.client.experimentdefinition.ui.handlers.CopyHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate

public class CopyHandler extends AbstractExperimentCommandHandler
  • Constructor Details

    • CopyHandler

      public CopyHandler()
  • Method Details

    • execute

      public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
      Throws:
      org.eclipse.core.commands.ExecutionException
    • run

      public void run(org.eclipse.jface.action.IAction action)
      Specified by:
      run in interface org.eclipse.ui.IActionDelegate
      Overrides:
      run in class AbstractExperimentCommandHandler
    • isValidPastePossible

      public static boolean isValidPastePossible()
      Returns:
      true if some selected files have been copied.
    • getCopied

      public static List<org.eclipse.core.resources.IFile> getCopied()
      Returns:
      objects currently being copied, if any.