Class StackAction

All Implemented Interfaces:
Disposable, UpdateAction, IAction
Direct Known Subclasses:
RedoAction, UndoAction

public abstract class StackAction extends WorkbenchPartAction
Superclass for actions needing access to the stack.
  • Constructor Details

    • StackAction

      public StackAction(IWorkbenchPart editor)
      Creates a StackAction and associates it with the given editor.
      Parameters:
      editor - The editor this action is associated with.
  • Method Details

    • getLabelForCommand

      protected String getLabelForCommand(Command command)
      Returns the label for the given command. Guarantees that null is never returned.
      Parameters:
      command - the command
      Returns:
      a non-null String