| org.eclipse.ui.texteditor.ResourceAction org.eclipse.ui.texteditor.RetargetTextEditorAction
RetargetTextEditorAction | final public class RetargetTextEditorAction extends ResourceAction (Code) | | Action used by an editor action bar contributor to establish placeholders in
menus or action bars which can be retargeted to dynamically changing actions,
for example, those which come from the active editor. This action assumes that
the "wrapped" action sends out property change events in response to state
changes. It uses these change notifications to adapt its enabling state and
its visual presentation.
|
Method Summary | |
public void | run() | public void | setAction(IAction action) Sets the underlying action. | public void | setHelpListener(HelpListener listener) The RetargetTextEditorAction implementation of this method declared on
IAction stores the help listener in a local field. |
RetargetTextEditorAction | public RetargetTextEditorAction(ResourceBundle bundle, String prefix, int style)(Code) | | Creates a new action. The action configures its initial visual
representation from the given resource bundle. If this action's
wrapped action is set to null it also uses the
information in the resource bundle.
Parameters: bundle - the resource bundle Parameters: prefix - a prefix to be prepended to the various resource keys(described in ResourceAction constructor), ornull if none Parameters: style - one of IAction.AS_PUSH_BUTTON , IAction.AS_CHECK_BOX ,and IAction.AS_RADIO_BUTTON . See Also: ResourceAction.ResourceAction(ResourceBundleStringint) See Also: IAction.AS_CHECK_BOX See Also: IAction.AS_DROP_DOWN_MENU See Also: IAction.AS_PUSH_BUTTON See Also: IAction.AS_RADIO_BUTTON since: 2.1 |
RetargetTextEditorAction | public RetargetTextEditorAction(ResourceBundle bundle, String prefix)(Code) | | Creates a new action. The action configures its initial visual
representation from the given resource bundle. If this action's
wrapped action is set to null it also uses the
information in the resource bundle.
Parameters: bundle - the resource bundle Parameters: prefix - a prefix to be prepended to the various resource keys(described in ResourceAction constructor), ornull if none See Also: ResourceAction.ResourceAction(ResourceBundleString) |
RetargetTextEditorAction | public RetargetTextEditorAction(ResourceBundle bundle, String prefix, String actionId, int style)(Code) | | Creates a new action. The action configures its initial visual
representation from the given resource bundle. If this action's
wrapped action is set to null it also uses the
information in the resource bundle. The action gets the given
action id.
Parameters: bundle - the resource bundle Parameters: prefix - a prefix to be prepended to the various resource keys(described in ResourceAction constructor), or null if none Parameters: actionId - the action id Parameters: style - one of IAction.AS_PUSH_BUTTON , IAction.AS_CHECK_BOX ,and IAction.AS_RADIO_BUTTON . See Also: ResourceAction.ResourceAction(ResourceBundleStringint) See Also: IAction.AS_CHECK_BOX See Also: IAction.AS_DROP_DOWN_MENU See Also: IAction.AS_PUSH_BUTTON See Also: IAction.AS_RADIO_BUTTON since: 2.1 |
RetargetTextEditorAction | public RetargetTextEditorAction(ResourceBundle bundle, String prefix, String actionId)(Code) | | Creates a new action. The action configures its initial visual
representation from the given resource bundle. If this action's
wrapped action is set to null it also uses the
information in the resource bundle. The action gets the given
action id.
Parameters: bundle - the resource bundle Parameters: prefix - a prefix to be prepended to the various resource keys(described in ResourceAction constructor), or null if none Parameters: actionId - the action id See Also: ResourceAction.ResourceAction(ResourceBundleString) since: 2.0 |
setAction | public void setAction(IAction action)(Code) | | Sets the underlying action.
Parameters: action - the underlying action |
setHelpListener | public void setHelpListener(HelpListener listener)(Code) | | The RetargetTextEditorAction implementation of this method declared on
IAction stores the help listener in a local field. The
supplied listener is only used if there is no handler.
Parameters: listener - the help listener since: 2.1 |
|
|