public abstract class HandlyXtextOutlinePage extends HandlyOutlinePage implements org.eclipse.xtext.ui.editor.IXtextEditorAware
Note that this class relies on the language-specific implementation of
IInputElementProvider
being available through injection.
The activation of linking with editor and lexical sorting for the outline
is governed by the injected LinkWithEditorPreference
and LexicalSortPreference
.
CommonOutlinePage.OutlineTreeViewer
Constructor and Description |
---|
HandlyXtextOutlinePage() |
Modifier and Type | Method and Description |
---|---|
protected IInputElementProvider |
getInputElementProvider()
Returns the input element provider for this outline page.
|
IBooleanPreference |
getLexicalSortPreference()
Returns lexical sort preference for this outline page.
|
IBooleanPreference |
getLinkWithEditorPreference()
Returns link-with-editor preference for this outline page.
|
void |
setEditor(org.eclipse.xtext.ui.editor.XtextEditor editor) |
void |
setInputElementProvider(IInputElementProvider provider) |
addCollapseAllSupport, addElementChangeListener, addLinkWithEditorSupport, addOutlineContributions, addSortingSupport, computeInput, elementChanged, getContentAdapter, init, removeElementChangeListener
addInputChangeListener, addOutlineContribution, addSelectionChangedListener, createControl, createTreeViewer, dispose, editorInputChanged, getContentProvider, getControl, getEditor, getLabelProvider, getSelection, getTreeViewer, init, initDecorationContext, isAutoExpandable, refresh, registerGlobalActions, removeInputChangeListener, removeOutlineContribution, removeSelectionChangedListener, setFocus, setSelection, shouldUseHashlookup
@Inject public void setInputElementProvider(IInputElementProvider provider)
protected IInputElementProvider getInputElementProvider()
HandlyOutlinePage
getInputElementProvider
in class HandlyOutlinePage
public IBooleanPreference getLinkWithEditorPreference()
ICommonOutlinePage
getLinkWithEditorPreference
in interface ICommonOutlinePage
null
if the outline page does not support
linking with editorpublic IBooleanPreference getLexicalSortPreference()
ICommonOutlinePage
getLexicalSortPreference
in interface ICommonOutlinePage
null
if the outline page does not support
lexical sortingpublic void setEditor(org.eclipse.xtext.ui.editor.XtextEditor editor)
setEditor
in interface org.eclipse.xtext.ui.editor.IXtextEditorAware
Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0