Package org.eclipse.handly.ui.outline
Class OutlineFilterContribution
java.lang.Object
org.eclipse.handly.ui.outline.OutlineContribution
org.eclipse.handly.ui.outline.OutlineFilterContribution
- All Implemented Interfaces:
IOutlineContribution
An abstract base class for outline filter contributions.
The activation of the filter is governed by a user preference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of this contribution.protected abstract org.eclipse.jface.viewers.ViewerFilterReturns a viewer filter that is to be contributed to the outline page.protected abstract IBooleanPreferenceReturns a boolean-valued preference that will control the activation of the filter.voidinit(ICommonOutlinePage outlinePage) Initializes this contribution.Methods inherited from class org.eclipse.handly.ui.outline.OutlineContribution
getOutlinePage
-
Constructor Details
-
OutlineFilterContribution
public OutlineFilterContribution()
-
-
Method Details
-
init
Description copied from class:OutlineContributionInitializes this contribution. This method is called after the outline page's tree viewer has been created.This method may be extended by subclasses. Subclasses must call the superclass implementation.
- Specified by:
initin interfaceIOutlineContribution- Overrides:
initin classOutlineContribution- Parameters:
outlinePage- the contribution's outline page (nevernull)
-
dispose
public void dispose()Description copied from class:OutlineContributionDisposes of this contribution. Implementors should clean up any resources associated with this contribution. Note that there is no guarantee thatinit()has been called. This method has no effect if this contribution has already been disposed.This method may be extended by subclasses. Subclasses must call the superclass implementation.
- Specified by:
disposein interfaceIOutlineContribution- Overrides:
disposein classOutlineContribution
-
getPreference
Returns a boolean-valued preference that will control the activation of the filter. May returnnull, in which case this contribution will be effectively disabled. This method is called once, when this contribution is initializing.- Returns:
- the filter preference, or
null
-
getFilter
protected abstract org.eclipse.jface.viewers.ViewerFilter getFilter()Returns a viewer filter that is to be contributed to the outline page. The activation of the filter will be governed by the filterpreference. This method is called once, when this contribution is initializing.- Returns:
- the filter instance (not
null)
-