public static class StaticSelectionCommandAction
extends java.lang.Object
org.eclipse.jface.action.IAction
on the menubar, the toolbar, or a pop-up menu by delegating all required
behaviour to a Command
, only when it is guaranteed that the
selection will not change during the life of the action. In other words,
the action itself would be created based on the selection, and destroyed
when the selection changed. All possible aspects of the action are
delegated to the command, namely the enablement state and, if it
implements CommandActionDelegate
, the text, the toolbar icon, and
the tool tip text; however, this need only be done once, at the time the
action is created.
Subclasses must provide an implementation for #createActionCommand
that creates the command to perform this action.
They may also override #getDefaultImageDescriptor
to provide a
default icon and #disable
to set the action's state when a command
cannot be created.