org.eclipse.ocl.examples.xtext.essentialocl.ui.outline
Class ElementNode

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode
      extended by org.eclipse.xtext.ui.editor.outline.impl.EObjectNode
          extended by org.eclipse.ocl.examples.xtext.essentialocl.ui.outline.ElementNode
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.xtext.ui.editor.outline.IOutlineNode, org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.emf.ecore.EObject>

public final class ElementNode
extends org.eclipse.xtext.ui.editor.outline.impl.EObjectNode

ElementNode provide an outline node for the Pivot element that provides the AST of a CST element.


Constructor Summary
ElementNode(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.ui.editor.outline.IOutlineNode parent, org.eclipse.swt.graphics.Image image, java.lang.Object text, boolean isLeaf)
           
 
Method Summary
<T> T
readOnly(org.eclipse.xtext.util.concurrent.IUnitOfWork<T,org.eclipse.emf.ecore.EObject> work)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.outline.impl.EObjectNode
getAdapter, getEClass, getEObject, getEObjectURI, getSignificantTextRegion, setShortTextRegion
 
Methods inherited from class org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode
addChild, getChildren, getDocument, getFullTextRegion, getImage, getParent, getText, getTreeProvider, 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

ElementNode

public ElementNode(org.eclipse.emf.ecore.EObject eObject,
                   org.eclipse.xtext.ui.editor.outline.IOutlineNode parent,
                   org.eclipse.swt.graphics.Image image,
                   java.lang.Object text,
                   boolean isLeaf)
Method Detail

readOnly

public <T> T readOnly(org.eclipse.xtext.util.concurrent.IUnitOfWork<T,org.eclipse.emf.ecore.EObject> work)
Specified by:
readOnly in interface org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.emf.ecore.EObject>
Overrides:
readOnly in class org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode