public abstract class HandlyOutlinePage extends CommonOutlinePage implements IContentAdapterProvider
CommonOutlinePage.OutlineTreeViewer
Constructor and Description |
---|
HandlyOutlinePage() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCollapseAllSupport()
Adds collapse-all support.
|
protected abstract void |
addElementChangeListener(IElementChangeListener listener)
Registers the given element change listener with the underlying model.
|
protected void |
addLinkWithEditorSupport()
Adds link-with-editor support.
|
protected void |
addOutlineContributions()
Hook to add contributions to this outline page.
|
protected void |
addSortingSupport()
Adds sorting support.
|
protected java.lang.Object |
computeInput()
Computes the new input element for the outline page's tree viewer.
|
protected void |
elementChanged(IElementChangeEvent event)
Notifies that the outline page is affected in some way
by the given element change event.
|
IContentAdapter |
getContentAdapter()
Returns the content adapter that defines a mapping between elements
of a Handly based model and the outline's content.
|
protected abstract IInputElementProvider |
getInputElementProvider() |
void |
init(org.eclipse.ui.IEditorPart editor)
Initializes this outline page with its corresponding editor.
|
protected abstract void |
removeElementChangeListener(IElementChangeListener listener)
Removes the given element change listener from the underlying model.
|
addInputChangeListener, addOutlineContribution, addSelectionChangedListener, createControl, createTreeViewer, dispose, editorInputChanged, getContentProvider, getControl, getEditor, getLabelProvider, getLexicalSortPreference, getLinkWithEditorPreference, getSelection, getTreeViewer, init, initDecorationContext, isAutoExpandable, refresh, registerGlobalActions, removeInputChangeListener, removeOutlineContribution, removeSelectionChangedListener, setFocus, setSelection, shouldUseHashlookup
public void init(org.eclipse.ui.IEditorPart editor)
ICommonOutlinePage
init
in interface ICommonOutlinePage
init
in class CommonOutlinePage
editor
- the editor which created this outline page
(not null
)public IContentAdapter getContentAdapter()
Default implementation returns a NullContentAdapter
.
Subclasses may override.
getContentAdapter
in interface IContentAdapterProvider
IContentAdapter
(never null
)protected java.lang.Object computeInput()
CommonOutlinePage
computeInput
in class CommonOutlinePage
null
)protected abstract IInputElementProvider getInputElementProvider()
protected void addOutlineContributions()
Default implementation adds contributions that are common to a typical outline. Subclasses may extend this method.
protected void addCollapseAllSupport()
protected void addLinkWithEditorSupport()
protected void addSortingSupport()
protected abstract void addElementChangeListener(IElementChangeListener listener)
listener
- never null
protected abstract void removeElementChangeListener(IElementChangeListener listener)
listener
- never null
protected void elementChanged(IElementChangeEvent event)
Note This method may be called in any thread. The event object (and the delta within it) is valid only for the duration of the invocation of this method.
Default implementation schedules refresh
of this page in the UI thread.
event
- never null