[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.150, 1.
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-07-13 12:34:03
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11548/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.150 retrieving revision 1.151 diff -C2 -d -r1.150 -r1.151 *** GenericTreeView.java 21 May 2010 07:28:54 -0000 1.150 --- GenericTreeView.java 13 Jul 2010 12:33:55 -0000 1.151 *************** *** 42,46 **** import net.sourceforge.bprocessor.model.Attribute; import net.sourceforge.bprocessor.model.Camera; - import net.sourceforge.bprocessor.model.Constructor; import net.sourceforge.bprocessor.model.CoordinateSystem; import net.sourceforge.bprocessor.model.Edge; --- 42,45 ---- *************** *** 707,710 **** --- 706,718 ---- } + + private Collection<Geometric> constructorsOf(Space owner) { + return (Collection) owner.getConstructors(); + } + + private Collection<Item> elementsOf(Space owner) { + return owner.getElements(); + } + /** * *************** *** 726,731 **** add(new EnvelopeContainer("Envelope", space)); String lvlstr = Space.levelToString(space.getLevel() + 1); ! add(new ElementContainer(lvlstr + "s", space.getElements())); ! CompositeNode cn = new ConstructorContainer("Constructors", space.getConstructors()); add(cn); add(new ScriptContainer("Scripts", space.getScripts(), false)); --- 734,739 ---- add(new EnvelopeContainer("Envelope", space)); String lvlstr = Space.levelToString(space.getLevel() + 1); ! add(new ElementContainer(lvlstr + "s", elementsOf(space))); ! CompositeNode cn = new ConstructorContainer("Constructors", constructorsOf(space)); add(cn); add(new ScriptContainer("Scripts", space.getScripts(), false)); *************** *** 885,889 **** * @param constructor The constructor */ ! public ConstructorNode(Constructor constructor) { super(constructor); if (constructor instanceof CoordinateSystem) { --- 893,897 ---- * @param constructor The constructor */ ! public ConstructorNode(Geometric constructor) { super(constructor); if (constructor instanceof CoordinateSystem) { *************** *** 1211,1215 **** * @param constructors The constructors */ ! public ConstructorContainer(String name, Collection<Constructor> constructors) { super(name, constructors, true); } --- 1219,1223 ---- * @param constructors The constructors */ ! public ConstructorContainer(String name, Collection<Geometric> constructors) { super(name, constructors, true); } *************** *** 1217,1221 **** /** {@inheritDoc} */ public EntityNode nodeFor(Object entity) { ! return new ConstructorNode((Constructor) entity); } } --- 1225,1229 ---- /** {@inheritDoc} */ public EntityNode nodeFor(Object entity) { ! return new ConstructorNode((Geometric) entity); } } |