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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of this contribution.final ICommonOutlinePage
Returns this contribution's outline page.void
init
(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
null
if 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:
init
in 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:
dispose
in interfaceIOutlineContribution
-