Class AbstractWidgetTargetAction

java.lang.Object
org.csstudio.opibuilder.actions.AbstractWidgetTargetAction
All Implemented Interfaces:
IActionDelegate, IObjectActionDelegate
Direct Known Subclasses:
AddTabAfterAction, AddTabBeforeAction, ChangeTabIndexAction, ClearXYGraphAction, CreateGroupAction, DuplicateTabAction, FillParentContainerAction, LayoutWidgetsAction, LockUnlockChildrenAction, PerformAutoSizeAction, ReloadOPIAction, RemoveGroupAction, RemoveTabAction, RerouteConnectionAction, SelectAllInGroupAction, SelectParentAction, ShowXYGraphToolbarAction

public abstract class AbstractWidgetTargetAction extends Object implements IObjectActionDelegate
The abstract action which will be performed on a widget target.
  • Field Details

  • Constructor Details

    • AbstractWidgetTargetAction

      public AbstractWidgetTargetAction()
  • Method Details

    • setActivePart

      public void setActivePart(IAction action, IWorkbenchPart targetPart)
      Specified by:
      setActivePart in interface IObjectActionDelegate
    • execute

      protected void execute(org.eclipse.gef.commands.Command command)
      Executes the given Command using the command stack. The stack is obtained by calling getCommandStack(), which uses IAdapatable to retrieve the stack from the workbench part.
      Parameters:
      command - the command to execute
    • getCommandStack

      protected org.eclipse.gef.commands.CommandStack getCommandStack()
      Returns the editor's command stack. This is done by asking the workbench part for its CommandStack via IAdaptable.getAdapter(java.lang.Class).
      Returns:
      the command stack
    • selectionChanged

      public void selectionChanged(IAction action, ISelection selection)
      Specified by:
      selectionChanged in interface IActionDelegate
    • getSelection

      protected IStructuredSelection getSelection()