|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.action.Action | +--org.eclipse.ui.actions.PartEventAction | +--org.eclipse.ui.actions.RetargetAction | +--org.eclipse.ui.actions.LabelRetargetAction
A 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.
Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
LabelRetargetAction(String actionID,
String text)
Constructs a LabelRetargetAction. |
Method Summary | |
protected void |
propagateChange(PropertyChangeEvent event)
The action handler has changed. |
protected void |
setActionHandler(IAction handler)
Sets the action handler. |
void |
setDisabledImageDescriptor(ImageDescriptor image)
Sets the disabled image for this action, as an image descriptor. |
void |
setHoverImageDescriptor(ImageDescriptor image)
Sets the hover image for this action, as an image descriptor. |
void |
setImageDescriptor(ImageDescriptor image)
Sets the image for this action, as an image descriptor. |
void |
setText(String text)
Sets the action's label text to the given value. |
void |
setToolTipText(String text)
Sets the tooltip text to the given text. |
Methods inherited from class org.eclipse.ui.actions.RetargetAction |
dispose, enableAccelerator, getAccelerator, getActionHandler, partActivated, partClosed, partDeactivated, run, runWithEvent, setChecked, setHelpListener |
Methods inherited from class org.eclipse.ui.actions.PartEventAction |
getActivePart, partBroughtToTop, partOpened |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LabelRetargetAction(String actionID, String text)
Method Detail |
protected void propagateChange(PropertyChangeEvent event)
propagateChange
in class RetargetAction
protected void setActionHandler(IAction handler)
setActionHandler
in class RetargetAction
public void setDisabledImageDescriptor(ImageDescriptor image)
IAction
Disabled images will be used on platforms that support changing the image
when the item is disabled.Fires a property change event for
the IMAGE
property
if the image actually changes as a consequence.
setDisabledImageDescriptor
in class Action
org.eclipse.jface.action.IAction
newImage
- the image, or null
if this
action should not have an imageIAction.IMAGE
public void setHoverImageDescriptor(ImageDescriptor image)
IAction
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 IMAGE
property
if the image actually changes as a consequence.
setHoverImageDescriptor
in class Action
org.eclipse.jface.action.IAction
newImage
- the image, or null
if this
action should not have an imageIAction.IMAGE
public void setImageDescriptor(ImageDescriptor image)
IAction
Fires a property change event for the IMAGE
property
if the image actually changes as a consequence.
setImageDescriptor
in class Action
org.eclipse.jface.action.IAction
newImage
- the image, or null
if this
action should not have an imageIAction.IMAGE
public void setText(String text)
setText
in class Action
org.eclipse.jface.action.Action
text
- the text, or null
if nonepublic void setToolTipText(String text)
null
clears the tooltip text.setToolTipText
in class Action
org.eclipse.jface.action.Action
toolTipText
- the tool tip text, or null
if none
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |