Package org.eclipse.handly.ui.outline
Class LinkWithEditorActionContribution
java.lang.Object
org.eclipse.handly.ui.outline.OutlineContribution
org.eclipse.handly.ui.outline.OutlineActionContribution
org.eclipse.handly.ui.outline.ToggleActionContribution
org.eclipse.handly.ui.outline.LinkWithEditorActionContribution
- All Implemented Interfaces:
IOutlineContribution
Contributes link-with-editor action, if the outline page supports
linking with editor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureAction(org.eclipse.jface.action.IAction action) Hook to configure the contributed action (set its id, text, image, etc.) This method is called once, when this contribution is initializing.protected IBooleanPreferenceReturns a boolean-valued preference that is to be toggled by the contributed action.Methods inherited from class org.eclipse.handly.ui.outline.ToggleActionContribution
createAction, disposeActionMethods inherited from class org.eclipse.handly.ui.outline.OutlineActionContribution
contribute, dispose, getContributionManager, initMethods inherited from class org.eclipse.handly.ui.outline.OutlineContribution
getOutlinePage
-
Field Details
-
ID
The action id.- See Also:
-
-
Constructor Details
-
LinkWithEditorActionContribution
public LinkWithEditorActionContribution()
-
-
Method Details
-
getPreference
Description copied from class:ToggleActionContributionReturns a boolean-valued preference that is to be toggled by the contributed action. May returnnull, in which case this contribution will be effectively disabled. This method is called once, when this contribution is initializing.- Specified by:
getPreferencein classToggleActionContribution- Returns:
- the linked preference, or
null
-
configureAction
protected void configureAction(org.eclipse.jface.action.IAction action) Description copied from class:ToggleActionContributionHook to configure the contributed action (set its id, text, image, etc.) This method is called once, when this contribution is initializing.- Specified by:
configureActionin classToggleActionContribution- Parameters:
action- the action to configure (nevernull)
-