Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.editparts.impl
Class TreeNodeEditPart

java.lang.Object
  extended by TreeContainerEditPart
      extended by com.ibm.etools.systems.application.visual.editor.editparts.impl.TreeNodeEditPart
Direct Known Subclasses:
SystemTreeNodeEditPart

public class TreeNodeEditPart
extends TreeContainerEditPart

Implementation of a tree edit part for node views.


Constructor Summary
TreeNodeEditPart(Object model)
           
 
Method Summary
 void activate()
           
 void deactivate()
           
protected  List getModelChildren()
           
protected  List getNodeChildren(Node node)
          Collect non-compartment children of the node.
protected  void handleNotificationEvent(Notification event)
           
protected  boolean isCompartment(Node node)
          Checks whether the node passed in as an argument is compartment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeEditPart

public TreeNodeEditPart(Object model)
Method Detail

getModelChildren

protected List getModelChildren()

isCompartment

protected boolean isCompartment(Node node)
Checks whether the node passed in as an argument is compartment

Parameters:
node - - The node to check
Returns:
true if node is a compartment, false otherwise

handleNotificationEvent

protected void handleNotificationEvent(Notification event)

getNodeChildren

protected List getNodeChildren(Node node)
Collect non-compartment children of the node. If one of the children is a compartment then children of this non-compartment children of this compartment child are appended to the list.

Parameters:
node - - the node from which children are collected
Returns:
List of non-compartment children of the node passed in as an argument

activate

public void activate()

deactivate

public void deactivate()

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.