Class TreeElement<C extends org.eclipse.emf.ecore.EObject>
java.lang.Object
com.amalgamasimulation.desktop.appelements.tree.TreeElement<C>
- Type Parameters:
C- container type
Element of the tree: the root, a group or a leaf. The role comes from the tree part:
- the root is the element that
AbstractTreePart.createRootTreeElementreturns; - a group is an element for which
AbstractTreePart.getChildrenreturns children; - a leaf is an element for which
getChildrenreturns an empty list.
new TreeElement<>(type, container) creates an element without an object,
new TreeElement<>(type, container, object) an element linked to an object. The root, a
group and a leaf can each be created either way.-
Constructor Summary
ConstructorsConstructorDescriptionTreeElement(AbstractTreeElementType treeElementType, C container) TreeElement(AbstractTreeElementType treeElementType, C container, Object object) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the model object shown by the element, ornullfor a group.inthashCode()