public abstract class LanguageElementNode
extends org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
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.
Modifier | Constructor and Description |
---|---|
protected |
LanguageElementNode(TextEditChangeNode.ChildNode parent)
Creates a new
LanguageElementNode using the
given ChildNode as a parent. |
protected |
LanguageElementNode(TextEditChangeNode parent)
Creates a new
LanguageElementNode using the
given TextEditChangeGroup as a parent. |
Modifier and Type | Method and Description |
---|---|
void |
addChild(TextEditChangeNode.ChildNode child)
Adds the given
ChildNode |
abstract IRegion |
getTextRange()
Returns the text region the of this language element node.
|
protected void |
internalAddChild(TextEditChangeNode.ChildNode child)
This is an internal method which should not be called by
subclasses.
|
getTextEditChangeNode
protected LanguageElementNode(TextEditChangeNode parent)
LanguageElementNode
using the
given TextEditChangeGroup
as a parent.parent
- the parent of this nodeprotected LanguageElementNode(TextEditChangeNode.ChildNode parent)
LanguageElementNode
using the
given ChildNode
as a parent.parent
- the parent of this nodepublic void addChild(TextEditChangeNode.ChildNode child)
ChildNode to this LanguageElementNode
child
- the child to addpublic abstract IRegion getTextRange() throws CoreException
getTextRange
in class org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
CoreException
- if the source region can't be obtainedprotected void internalAddChild(TextEditChangeNode.ChildNode child)
internalAddChild
in class org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
child
- the child node to add
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.