Class CopyPropertiesAction

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

public class CopyPropertiesAction extends org.eclipse.gef.ui.actions.SelectionAction
The action that only copy properties from a widget.
  • Field Details

  • Constructor Details

    • CopyPropertiesAction

      public CopyPropertiesAction(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