public class TextEditChangeNode
extends org.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
TextEditBasedChange
s in the
preview tree.
This class should be subclassed by clients wishing to provide language
aware substructures for special TextEditBasedChange
s. The preview
infrastructure accesses to preview node for a
TextEditBasedChange
by asking the change for an adapter of type
TextEditChangeNode
.
If no adapter is returned, this default implementation will be used to present
TextEditBasedChange
in the preview tree.
Modifier and Type | Class and Description |
---|---|
static class |
TextEditChangeNode.ChildNode |
Constructor and Description |
---|
TextEditChangeNode(TextEditBasedChange change)
Creates a new text edit change node for the given change.
|
Modifier and Type | Method and Description |
---|---|
protected TextEditChangeNode.ChildNode[] |
createChildNodes() |
static TextEditChangeNode.ChildNode |
createTextEditGroupNode(TextEditChangeNode.ChildNode parent,
TextEditBasedChangeGroup changeGroup)
Creates a new child node for the given parent and change group.
|
static TextEditChangeNode.ChildNode |
createTextEditGroupNode(TextEditChangeNode parent,
TextEditBasedChangeGroup changeGroup)
Creates a new child node for the given parent and change group.
|
ImageDescriptor |
getImageDescriptor()
Returns the image descriptor used to render this node
in the UI.
|
String |
getText()
Returns the text used to render this node in the
UI.
|
TextEditBasedChange |
getTextEditBasedChange()
Returns the
TextEditBasedChange this node is
associated with. |
internalGetTextEditChangeNode
public TextEditChangeNode(TextEditBasedChange change)
change
- the TextEditBasedChange
this node
represents in the preview treepublic static TextEditChangeNode.ChildNode createTextEditGroupNode(TextEditChangeNode.ChildNode parent, TextEditBasedChangeGroup changeGroup)
parent
- the parent of the new child nodechangeGroup
- the TextEditBasedChangeGroup
this child node
represents in the preview treepublic static TextEditChangeNode.ChildNode createTextEditGroupNode(TextEditChangeNode parent, TextEditBasedChangeGroup changeGroup)
parent
- the parent of the new child nodechangeGroup
- the TextEditBasedChangeGroup
this child node
represents in the preview treepublic final TextEditBasedChange getTextEditBasedChange()
TextEditBasedChange
this node is
associated with.getTextEditBasedChange
in class org.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
TextEditBasedChange
public String getText()
getText
in class org.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode
public ImageDescriptor getImageDescriptor()
getImageDescriptor
in class org.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode
protected TextEditChangeNode.ChildNode[] createChildNodes()
createChildNodes
in class org.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.