Package org.eclipse.handly.ui.outline
Class OutlineContribution
java.lang.Object
org.eclipse.handly.ui.outline.OutlineContribution
- All Implemented Interfaces:
IOutlineContribution
- Direct Known Subclasses:
EditorInputListenerContribution,ElementChangeListenerContribution,LinkWithEditorContribution,OutlineActionContribution,OutlineContextMenuContribution,OutlineDragAndDropContribution,OutlineFilterContribution,OutlineSorterContribution,ResourceChangeListenerContribution
A basic implementation of
IOutlineContribution.
Keeps reference to the contribution's outline page.
This class is intended to be extended by clients.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of this contribution.final ICommonOutlinePageReturns this contribution's outline page.voidinit(ICommonOutlinePage outlinePage) Initializes this contribution.
-
Constructor Details
-
OutlineContribution
public OutlineContribution()
-
-
Method Details
-
getOutlinePage
Returns this contribution's outline page.- Returns:
- the outline page of this contribution,
or
nullif this contribution has not beeninitialized
-
init
Initializes 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- Parameters:
outlinePage- the contribution's outline page (nevernull)
-
dispose
public void dispose()Disposes 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
-