org.eclipse.xtext.ui.editor.outline.impl
Class DocumentRootNode

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode
      extended by org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IOutlineNode, IReadAccess<org.eclipse.emf.ecore.EObject>

public class DocumentRootNode
extends AbstractOutlineNode

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
DocumentRootNode(org.eclipse.swt.graphics.Image image, java.lang.Object text, IXtextDocument document, IOutlineTreeStructureProvider treeProvider)
           
 
Method Summary
 IXtextDocument getDocument()
           
 IOutlineTreeStructureProvider getTreeProvider()
           
<T> T
readOnly(IUnitOfWork<T,org.eclipse.emf.ecore.EObject> work)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode
addChild, getAdapter, getChildren, getEObjectURI, getFullTextRegion, getImage, getParent, getSignificantTextRegion, getText, hasChildren, removeChild, setImage, setParent, setText, setTextRegion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentRootNode

public DocumentRootNode(org.eclipse.swt.graphics.Image image,
                        java.lang.Object text,
                        IXtextDocument document,
                        IOutlineTreeStructureProvider treeProvider)
Method Detail

getDocument

public IXtextDocument getDocument()
Overrides:
getDocument in class AbstractOutlineNode

getTreeProvider

public IOutlineTreeStructureProvider getTreeProvider()
Overrides:
getTreeProvider in class AbstractOutlineNode

readOnly

public <T> T readOnly(IUnitOfWork<T,org.eclipse.emf.ecore.EObject> work)
Specified by:
readOnly in interface IReadAccess<org.eclipse.emf.ecore.EObject>
Overrides:
readOnly in class AbstractOutlineNode