Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.ui.refactoring
Class LanguageElementNode


java.lang.Object
  extended by org.eclipse.ltk.internal.ui.refactoring.PreviewNode
      extended by 

org.eclipse.ltk.ui.refactoring.TextEditChangeNode.ChildNode
          extended by org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
              extended by 
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
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.
 
Method Summary
 void addChild ( TextEditChangeNode.ChildNode child)
          Adds the given ChildNode to this LanguageElementNode
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.
 
Methods inherited from class org.eclipse.ltk.ui.refactoring. TextEditChangeNode.ChildNode
getTextEditChangeNode
 
Methods inherited from class org.eclipse.ltk.internal.ui.refactoring.PreviewNode
getImageDescriptor, getText
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageElementNode

protected LanguageElementNode(
TextEditChangeNode parent)
Creates a new LanguageElementNode using the given TextEditChangeGroup as a parent.

Parameters:
parent - the parent of this node

LanguageElementNode

protected LanguageElementNode(
TextEditChangeNode.ChildNode parent)
Creates a new LanguageElementNode using the given ChildNode as a parent.

Parameters:
parent - the parent of this node
Method Detail

addChild

public void addChild(
TextEditChangeNode.ChildNode child)
Adds the given ChildNode to this LanguageElementNode

Parameters:
child - the child to add

getTextRange

public abstract 
IRegion getTextRange()
                              throws 
CoreException
Returns the text region the of this language element node.

Specified by:
getTextRange in class org.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

protected void internalAddChild(
TextEditChangeNode.ChildNode child)
This is an internal method which should not be called by subclasses.

Overrides:
internalAddChild in class org.eclipse.ltk.internal.ui.refactoring.InternalLanguageElementNode
Parameters:
child - the child node to add
Restriction:
This method is not intended to be referenced by clients.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire