public abstract class AbstractOutlineNode extends java.lang.Object implements IOutlineNode, IOutlineNode.Extension
IOutlineNode.Extension
IReadAccess.Priority<P>
Modifier | Constructor and Description |
---|---|
protected |
AbstractOutlineNode(IOutlineNode parent,
org.eclipse.jface.resource.ImageDescriptor imageDescriptor,
java.lang.Object text,
boolean isLeaf) |
protected |
AbstractOutlineNode(IOutlineNode parent,
org.eclipse.swt.graphics.Image image,
java.lang.Object text,
boolean isLeaf)
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addChild(IOutlineNode outlineNode) |
java.lang.Object |
getAdapter(java.lang.Class adapterType) |
java.util.List<IOutlineNode> |
getChildren() |
IXtextDocument |
getDocument() |
protected org.eclipse.emf.common.util.URI |
getEObjectURI() |
ITextRegion |
getFullTextRegion()
The region that triggers selection of this node when "Link with Editor" is enabled.
|
org.eclipse.swt.graphics.Image |
getImage()
Deprecated.
use
getImageDescriptor() instead. |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor() |
IOutlineNode |
getParent() |
ITextRegion |
getSignificantTextRegion()
The region that is selected in the editor when this node is double clicked or selected in "Link with Editor"
mode.
|
java.lang.Object |
getText() |
IOutlineTreeStructureProvider |
getTreeProvider() |
boolean |
hasChildren() |
<T> T |
readOnly(IUnitOfWork<T,org.eclipse.emf.ecore.EObject> work) |
protected boolean |
removeChild(IOutlineNode outlineNode) |
void |
setImage(org.eclipse.swt.graphics.Image image) |
void |
setImageDescriptor(org.eclipse.jface.resource.ImageDescriptor imageDescriptor) |
protected void |
setParent(IOutlineNode newParent) |
void |
setText(java.lang.Object text) |
void |
setTextRegion(ITextRegion textRegion) |
java.lang.String |
toString() |
protected AbstractOutlineNode(IOutlineNode parent, org.eclipse.swt.graphics.Image image, java.lang.Object text, boolean isLeaf)
protected AbstractOutlineNode(IOutlineNode parent, org.eclipse.jface.resource.ImageDescriptor imageDescriptor, java.lang.Object text, boolean isLeaf)
protected void setParent(IOutlineNode newParent)
protected boolean addChild(IOutlineNode outlineNode)
protected boolean removeChild(IOutlineNode outlineNode)
public java.util.List<IOutlineNode> getChildren()
getChildren
in interface IOutlineNode
public IOutlineNode getParent()
getParent
in interface IOutlineNode
public boolean hasChildren()
hasChildren
in interface IOutlineNode
public java.lang.Object getText()
getText
in interface IOutlineNode
public void setText(java.lang.Object text)
@Deprecated public org.eclipse.swt.graphics.Image getImage()
getImageDescriptor()
instead.getImage
in interface IOutlineNode
public void setImage(org.eclipse.swt.graphics.Image image)
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor
in interface IOutlineNode.Extension
public void setImageDescriptor(org.eclipse.jface.resource.ImageDescriptor imageDescriptor)
public IXtextDocument getDocument()
public IOutlineTreeStructureProvider getTreeProvider()
public void setTextRegion(ITextRegion textRegion)
public ITextRegion getFullTextRegion()
IOutlineNode
getFullTextRegion
in interface IOutlineNode
public ITextRegion getSignificantTextRegion()
IOutlineNode
getSignificantTextRegion
in interface IOutlineNode
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getAdapter(java.lang.Class adapterType)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
protected org.eclipse.emf.common.util.URI getEObjectURI()
public <T> T readOnly(IUnitOfWork<T,org.eclipse.emf.ecore.EObject> work)
readOnly
in interface IReadAccess<org.eclipse.emf.ecore.EObject>