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, initgetOutlinePageprotected final org.eclipse.jface.action.IAction createAction()
OutlineActionContributioncreateAction in class OutlineActionContributionnullprotected final void disposeAction(org.eclipse.jface.action.IAction action)
OutlineActionContributionDefault implementation does nothing. Subclasses may override.
disposeAction in class OutlineActionContributionaction - 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.nullprotected abstract void configureAction(org.eclipse.jface.action.IAction action)
action - the action to configure (never null)Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0