Package org.eclipse.ltk.ui.refactoring
Class LanguageElementNode
java.lang.Object
org.eclipse.ltk.internal.ui.refactoring.PreviewNode
org.eclipse.ltk.ui.refactoring.TextEditChangeNode.ChildNode
org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
org.eclipse.ltk.ui.refactoring.LanguageElementNode
public abstract class LanguageElementNode
extends org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
A special child node of a
TextEditChangeNode to represent
language elements which don't have an associated TextEditChangeGroup
. Instances of this class typically represent language members
like types, methods, fields, etc. in the change preview tree.
Clients may extend this class.
- Since:
- 3.2
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newLanguageElementNodeusing the givenTextEditChangeGroupas a parent.protectedCreates a newLanguageElementNodeusing the givenChildNodeas a parent. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the givenChildNodeto thisLanguageElementNodeabstract IRegionReturns the text region the of this language element node.protected voidThis is an internal method which should not be called by subclasses.Methods inherited from class org.eclipse.ltk.ui.refactoring.TextEditChangeNode.ChildNode
getTextEditChangeNodeMethods inherited from class org.eclipse.ltk.internal.ui.refactoring.PreviewNode
getImageDescriptor, getText
-
Constructor Details
-
LanguageElementNode
Creates a newLanguageElementNodeusing the givenTextEditChangeGroupas a parent.- Parameters:
parent- the parent of this node
-
LanguageElementNode
Creates a newLanguageElementNodeusing the givenChildNodeas a parent.- Parameters:
parent- the parent of this node
-
-
Method Details
-
addChild
Adds the givenChildNodeto thisLanguageElementNode- Parameters:
child- the child to add
-
getTextRange
Returns the text region the of this language element node.- Specified by:
getTextRangein classorg.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode- Returns:
- the text region of this language element node
- Throws:
CoreException- if the source region can't be obtained
-
internalAddChild
This is an internal method which should not be called by subclasses.- Overrides:
internalAddChildin classorg.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode- Parameters:
child- the child node to add- Restriction:
- This method is not intended to be referenced by clients.
-