public class PovrayContentOutlinePage
extends ContentOutlinePage
Modifier and Type | Class and Description |
---|---|
protected class |
PovrayContentOutlinePage.ContentProvider
Divides the editor's document into segments and provides elements for them.
|
protected class |
PovrayContentOutlinePage.PovrayLabelProvider
The label and image provider for the outline view.
|
Modifier and Type | Field and Description |
---|---|
protected IDocumentProvider |
fDocumentProvider |
protected java.lang.Object |
fInput |
protected ITextEditor |
fTextEditor |
Constructor and Description |
---|
PovrayContentOutlinePage(IDocumentProvider provider,
ITextEditor editor)
Creates a content outline page using the given provider and the given editor.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent) |
Control |
getControl() |
java.util.List<Segment> |
getSegments() |
ISelection |
getSelection() |
protected TreeViewer |
getTreeViewer()
Returns this page's tree viewer.
|
void |
selectionChanged(SelectionChangedEvent event) |
void |
setFocus()
Sets focus to a part in the page.
|
void |
setInput(java.lang.Object input)
Sets the input of the outline page
|
void |
setSelection(ISelection selection)
Method declared on ISelectionProvider.
|
void |
treeCollapsed(TreeExpansionEvent event) |
void |
treeExpanded(TreeExpansionEvent event) |
void |
update()
Updates the outline page.
|
void |
update(java.lang.String filePath,
DirtyRegion dirtyRegion) |
protected java.lang.Object fInput
protected IDocumentProvider fDocumentProvider
protected ITextEditor fTextEditor
public PovrayContentOutlinePage(IDocumentProvider provider, ITextEditor editor)
provider
- the document providereditor
- the editorpublic void createControl(Composite parent)
public void selectionChanged(SelectionChangedEvent event)
public void setInput(java.lang.Object input)
input
- the input of this outline pagepublic void update()
public java.util.List<Segment> getSegments()
null
.public void update(java.lang.String filePath, DirtyRegion dirtyRegion)
dirtyRegion
- public Control getControl()
org.eclipse.ui.views.contentoutline.ContentOutlinePage#getControl()
public ISelection getSelection()
org.eclipse.ui.views.contentoutline.ContentOutlinePage#getSelection()
protected TreeViewer getTreeViewer()
null
if
createControl
has not been called yetpublic void setFocus()
public void setSelection(ISelection selection)
public void treeCollapsed(TreeExpansionEvent event)
org.eclipse.jface.viewers.ITreeViewerListener#treeCollapsed(org.eclipse.jface.viewers.TreeExpansionEvent)
public void treeExpanded(TreeExpansionEvent event)
org.eclipse.jface.viewers.ITreeViewerListener#treeExpanded(org.eclipse.jface.viewers.TreeExpansionEvent)