Class PastePropertiesAction

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.PastePropertiesAction
All Implemented Interfaces:
org.eclipse.gef.Disposable, org.eclipse.gef.ui.actions.UpdateAction, IAction

public class PastePropertiesAction extends org.eclipse.gef.ui.actions.SelectionAction
The action that paste the properties from clipboard.
  • Field Details

  • Constructor Details

    • PastePropertiesAction

      public PastePropertiesAction(IWorkbenchPart part)
  • Method Details

    • calculateEnabled

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

      public org.eclipse.gef.commands.Command createPasteCommand()
    • 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