public abstract class StackAction extends WorkbenchPartAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
Constructor and Description |
---|
StackAction(IWorkbenchPart editor)
Creates a
StackAction and associates it with the given
editor. |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getLabelForCommand(Command command)
Returns the label for the given command.
|
calculateEnabled, dispose, execute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart, update
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public StackAction(IWorkbenchPart editor)
StackAction
and associates it with the given
editor.editor
- The editor this action is associated with.protected java.lang.String getLabelForCommand(Command command)
null
is never returned.command
- the commandnull
StringCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.