org.eclipse.xtext.ui.editor.outline.actions
Class OutlineWithEditorLinker

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.outline.actions.OutlineWithEditorLinker
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener

public class OutlineWithEditorLinker
extends java.lang.Object
implements org.eclipse.jface.util.IPropertyChangeListener

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
protected  class OutlineWithEditorLinker.TextListener
           
protected  class OutlineWithEditorLinker.TreeListener
           
 
Field Summary
protected  boolean isLinkingEnabled
           
protected  OutlinePage outlinePage
           
protected  OutlineWithEditorLinker.TextListener textListener
           
protected  org.eclipse.jface.text.source.ISourceViewer textViewer
           
protected  OutlineWithEditorLinker.TreeListener treeListener
           
protected  org.eclipse.jface.viewers.TreeViewer treeViewer
           
 
Constructor Summary
OutlineWithEditorLinker()
           
 
Method Summary
 void activate(OutlinePage outlinePage)
           
 void deactivate()
           
protected  IOutlineNode findBestNode(IOutlineNode input, ITextRegion selectedTextRegion)
           
protected  IOutlineNode getSelectedOutlineNode(org.eclipse.jface.viewers.ISelection selection)
           
protected  boolean isOutlineViewActive()
           
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
protected  void selectInTextEditor(org.eclipse.jface.viewers.ISelection selection)
           
protected  void selectInTreeView(org.eclipse.jface.viewers.ISelection selection)
           
 void setLinkingEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textViewer

protected org.eclipse.jface.text.source.ISourceViewer textViewer

treeViewer

protected org.eclipse.jface.viewers.TreeViewer treeViewer

treeListener

protected OutlineWithEditorLinker.TreeListener treeListener

textListener

protected OutlineWithEditorLinker.TextListener textListener

isLinkingEnabled

protected boolean isLinkingEnabled

outlinePage

protected OutlinePage outlinePage
Constructor Detail

OutlineWithEditorLinker

public OutlineWithEditorLinker()
Method Detail

activate

public void activate(OutlinePage outlinePage)

deactivate

public void deactivate()

setLinkingEnabled

public void setLinkingEnabled(boolean enabled)

selectInTextEditor

protected void selectInTextEditor(org.eclipse.jface.viewers.ISelection selection)

selectInTreeView

protected void selectInTreeView(org.eclipse.jface.viewers.ISelection selection)

findBestNode

protected IOutlineNode findBestNode(IOutlineNode input,
                                    ITextRegion selectedTextRegion)

getSelectedOutlineNode

protected IOutlineNode getSelectedOutlineNode(org.eclipse.jface.viewers.ISelection selection)

isOutlineViewActive

protected boolean isOutlineViewActive()

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener