Class ReplaceWidgetsAction

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

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

  • Constructor Details

    • ReplaceWidgetsAction

      public ReplaceWidgetsAction(IWorkbenchPart part)
  • Method Details

    • calculateEnabled

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

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