EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.internal.editor
Class PatternEditorContentOutlinePage.PatternDataNode

java.lang.Object
  extended by org.eclipse.egf.common.ui.viewers.DefaultTreeNode
      extended by org.eclipse.egf.pattern.ui.internal.editor.PatternEditorContentOutlinePage.PatternDataNode
All Implemented Interfaces:
ITreeNode
Enclosing class:
PatternEditorContentOutlinePage

public class PatternEditorContentOutlinePage.PatternDataNode
extends DefaultTreeNode

Pattern data node.


Constructor Summary
protected PatternEditorContentOutlinePage.PatternDataNode(ITreeNode parent_p)
          Constructor.
 
Method Summary
protected  ITreeNode addNode(Object element_p)
          Add a new node for given element.
protected  void clear()
          Clear cached contents.
protected  ITreeNode createNewNode(Object element_p)
          Create a new node for given element.
 ITreeNode[] getChildren()
          Get children nodes.
protected  ITreeNode getNode(Object element_p)
          Get node for given element.
 boolean hasChildren()
          Has current node any children ?
 boolean isHandling(Object element_p)
          Is node handling/representing given element ?
protected  ITreeNode removeNode(Object element_p)
          Remove existing node for given element.
 String toString()
           
 
Methods inherited from class org.eclipse.egf.common.ui.viewers.DefaultTreeNode
comparisonPriority, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternEditorContentOutlinePage.PatternDataNode

protected PatternEditorContentOutlinePage.PatternDataNode(ITreeNode parent_p)
Constructor.

Parameters:
parent_p -
Method Detail

clear

protected void clear()
Clear cached contents.


isHandling

public boolean isHandling(Object element_p)
Description copied from interface: ITreeNode
Is node handling/representing given element ?

Specified by:
isHandling in interface ITreeNode
Overrides:
isHandling in class DefaultTreeNode
Returns:
See Also:
DefaultTreeNode.isHandling(java.lang.Object)

getChildren

public ITreeNode[] getChildren()
Description copied from interface: ITreeNode
Get children nodes.

Specified by:
getChildren in interface ITreeNode
Overrides:
getChildren in class DefaultTreeNode
Returns:
null if none.
See Also:
ITreeNode.getChildren()

createNewNode

protected ITreeNode createNewNode(Object element_p)
Create a new node for given element.

Parameters:
element_p -
Returns:
null if no node could be created.

addNode

protected ITreeNode addNode(Object element_p)
Add a new node for given element.

Parameters:
method_p - A not null, not already handled element.
Returns:
newly created tree node, or null if given element is null or already handled.

removeNode

protected ITreeNode removeNode(Object element_p)
Remove existing node for given element.

Parameters:
element_p - A not null, already handled element.
Returns:
removed node, or null if it could not be found.

getNode

protected ITreeNode getNode(Object element_p)
Get node for given element.

Parameters:
element_p -
Returns:
null if it could not be found.

hasChildren

public boolean hasChildren()
Description copied from interface: ITreeNode
Has current node any children ?

Specified by:
hasChildren in interface ITreeNode
Overrides:
hasChildren in class DefaultTreeNode
Returns:
true if so, false otherwise.
See Also:
ITreeNode.hasChildren()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.