Class LabelRetargetAction
- All Implemented Interfaces:
- IAction,- ActionFactory.IWorkbenchAction,- IPartListener
LabelRetargetAction extends the behavior of RetargetAction. It
 will track the enable state, label, and tool tip text of the target action..
 This class may be instantiated. It is not intented to be subclassed.
- Since:
- 2.0
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Field SummaryFields inherited from interface org.eclipse.jface.action.IActionAS_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 SummaryConstructorsConstructorDescriptionLabelRetargetAction(String actionID, String text) Constructs a LabelRetargetAction with the given action id and text.LabelRetargetAction(String actionID, String text, int style) Constructs a RetargetAction with the given action id, text and style.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidThe action handler has changed.protected voidsetActionHandler(IAction handler) Sets the action handler.voidSets the disabled image for this action, as an image descriptor.voidSets the hover image for this action, as an image descriptor.voidSets the image for this action, as an image descriptor.voidSets the action's label text to the given value.voidsetToolTipText(String text) Sets the tooltip text to the given text.Methods inherited from class org.eclipse.ui.actions.RetargetActiondispose, enableAccelerator, getAccelerator, getActionHandler, isHandled, partActivated, partClosed, partDeactivated, run, runWithEvent, setChecked, setHelpListener, toStringMethods inherited from class org.eclipse.ui.actions.PartEventActiongetActivePart, partBroughtToTop, partOpenedMethods inherited from class org.eclipse.jface.action.ActionconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setDescription, setEnabled, setId, setMenuCreatorMethods inherited from class org.eclipse.jface.action.AbstractActionaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IActionaddPropertyChangeListener, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removePropertyChangeListener, setAccelerator, setActionDefinitionId, setDescription, setEnabled, setId, setMenuCreator
- 
Constructor Details- 
LabelRetargetActionConstructs a LabelRetargetAction with the given action id and text.- Parameters:
- actionID- the retargetable action id
- text- the action's text, or- nullif there is no text
 
- 
LabelRetargetActionConstructs a RetargetAction with the given action id, text and style.- Parameters:
- actionID- the retargetable action id
- text- the action's text, or- nullif there is no text
- style- one of- AS_PUSH_BUTTON,- AS_CHECK_BOX,- AS_DROP_DOWN_MENU,- AS_RADIO_BUTTON, and- AS_UNSPECIFIED.
- Since:
- 3.0
 
 
- 
- 
Method Details- 
propagateChangeThe action handler has changed. Update self.- Overrides:
- propagateChangein class- RetargetAction
 
- 
setActionHandlerSets the action handler. Update self.- Overrides:
- setActionHandlerin class- RetargetAction
 
- 
setDisabledImageDescriptorDescription copied from interface:IActionSets the disabled image for this action, as an image descriptor.Disabled images will be used on platforms that support changing the image when the item is disabled.Fires a property change event for the IMAGEproperty if the image actually changes as a consequence.- Specified by:
- setDisabledImageDescriptorin interface- IAction
- Overrides:
- setDisabledImageDescriptorin class- Action
- Parameters:
- image- the image, or- nullif this action should not have an image
- See Also:
 
- 
setHoverImageDescriptorDescription copied from interface:IActionSets the hover image for this action, as an image descriptor.Hover images will be used on platforms that support changing the image when the user hovers over the item.Fires a property change event for the IMAGEproperty if the image actually changes as a consequence.- Specified by:
- setHoverImageDescriptorin interface- IAction
- Overrides:
- setHoverImageDescriptorin class- Action
- Parameters:
- image- the image, or- nullif this action should not have an image
- See Also:
 
- 
setImageDescriptorDescription copied from interface:IActionSets the image for this action, as an image descriptor.Fires a property change event for the IMAGEproperty if the image actually changes as a consequence.Note: This operation is a hint and is not supported in all contexts on platforms that do not have this concept (for example, Windows NT). Furthermore, some platforms (such as GTK), cannot display both a check box and an image at the same time. Instead, they hide the image and display the check box. - Specified by:
- setImageDescriptorin interface- IAction
- Overrides:
- setImageDescriptorin class- Action
- Parameters:
- image- the image, or- nullif this action should not have an image
- See Also:
 
- 
setTextSets the action's label text to the given value.
- 
setToolTipTextSets the tooltip text to the given text. The valuenullclears the tooltip text.- Specified by:
- setToolTipTextin interface- IAction
- Overrides:
- setToolTipTextin class- Action
- Parameters:
- text- the tool tip text, or- nullif none
- See Also:
 
 
-