Package org.eclipse.ltk.ui.refactoring
Class TextEditChangeNode
java.lang.Object
org.eclipse.ltk.internal.ui.refactoring.PreviewNode
org.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode
org.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
org.eclipse.ltk.ui.refactoring.TextEditChangeNode
public class TextEditChangeNode
extends org.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
A special preview node to represent
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.
- Since:
- 3.2
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreates a new text edit change node for the given change. -
Method Summary
Modifier and TypeMethodDescriptionprotected TextEditChangeNode.ChildNode[]
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.Returns the image descriptor used to render this node in the UI.getText()
Returns the text used to render this node in the UI.final TextEditBasedChange
Returns theTextEditBasedChange
this node is associated with.Methods inherited from class org.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
internalGetTextEditChangeNode
Methods inherited from class org.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode
createNode, createNode
-
Constructor Details
-
TextEditChangeNode
Creates a new text edit change node for the given change.- Parameters:
change
- theTextEditBasedChange
this node represents in the preview tree
-
-
Method Details
-
createTextEditGroupNode
public static TextEditChangeNode.ChildNode createTextEditGroupNode(TextEditChangeNode.ChildNode parent, TextEditBasedChangeGroup changeGroup) Creates a new child node for the given parent and change group.- Parameters:
parent
- the parent of the new child nodechangeGroup
- theTextEditBasedChangeGroup
this child node represents in the preview tree- Returns:
- the new child node
-
createTextEditGroupNode
public static TextEditChangeNode.ChildNode createTextEditGroupNode(TextEditChangeNode parent, TextEditBasedChangeGroup changeGroup) Creates a new child node for the given parent and change group.- Parameters:
parent
- the parent of the new child nodechangeGroup
- theTextEditBasedChangeGroup
this child node represents in the preview tree- Returns:
- the new child node
-
getTextEditBasedChange
Returns theTextEditBasedChange
this node is associated with.- Overrides:
getTextEditBasedChange
in classorg.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
- Returns:
- the
TextEditBasedChange
-
getText
Returns the text used to render this node in the UI.- Overrides:
getText
in classorg.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode
- Returns:
- a human readable representation of this node
-
getImageDescriptor
Returns the image descriptor used to render this node in the UI.- Overrides:
getImageDescriptor
in classorg.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode
- Returns:
- the image descriptor representing this node
-
createChildNodes
- Specified by:
createChildNodes
in classorg.eclipse.ltk.internal.ui.refactoring.InternalTextEditChangeNode
-