public abstract class ToggleActionContribution extends OutlineActionContribution
Constructor and Description |
---|
ToggleActionContribution() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configureAction(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 org.eclipse.jface.action.IAction |
createAction()
Returns a new action that is to be contributed to the outline page.
|
protected void |
disposeAction(org.eclipse.jface.action.IAction action)
Disposes of the contributed action.
|
protected abstract IBooleanPreference |
getPreference()
Returns a boolean-valued preference that is to be toggled by the
contributed action.
|
contribute, dispose, getContributionManager, init
getOutlinePage
protected final org.eclipse.jface.action.IAction createAction()
OutlineActionContribution
createAction
in class OutlineActionContribution
null
protected final void disposeAction(org.eclipse.jface.action.IAction action)
OutlineActionContribution
Default implementation does nothing. Subclasses may override.
disposeAction
in class OutlineActionContribution
action
- the action to dispose (never null
)protected abstract IBooleanPreference getPreference()
null
, in which case
this contribution will be effectively disabled. This method
is called once, when this contribution is initializing.null
protected abstract void configureAction(org.eclipse.jface.action.IAction action)
action
- the action to configure (never null
)Copyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0