Class CopyWidgetsAction

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.gef.ui.actions.WorkbenchPartAction
org.eclipse.gef.ui.actions.SelectionAction
org.csstudio.opibuilder.actions.CopyWidgetsAction
All Implemented Interfaces:
org.eclipse.gef.Disposable, org.eclipse.gef.ui.actions.UpdateAction, IAction
Direct Known Subclasses:
CutWidgetsAction

public class CopyWidgetsAction extends org.eclipse.gef.ui.actions.SelectionAction
The action to copy selected widgets to clipboard.
  • Constructor Details

    • CopyWidgetsAction

      public CopyWidgetsAction(OPIEditor part)
  • Method Details

    • calculateEnabled

      protected boolean calculateEnabled()
      Specified by:
      calculateEnabled in class org.eclipse.gef.ui.actions.WorkbenchPartAction
    • run

      public void run()
      Specified by:
      run in interface IAction
      Overrides:
      run in class Action
    • getSelectedWidgetModels

      protected final List<AbstractWidgetModel> getSelectedWidgetModels()
      Gets the widget models of all currently selected EditParts.
      Returns:
      a list with all widget models that are currently selected. The order of the selected widgets was kept.