Update of /cvsroot/bprocessor//gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31138/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java
Log Message:
changed unions in the model to be on same level as their owner
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor//gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.116
retrieving revision 1.117
diff -C2 -d -r1.116 -r1.117
*** GenericTreeView.java 22 Oct 2007 06:55:01 -0000 1.116
--- GenericTreeView.java 31 Oct 2007 11:33:27 -0000 1.117
***************
*** 638,647 ****
Set surfaces = space.getEnvelope();
add(new SurfaceContainer("Envelope", surfaces));
! String lvlstr = "";
! if (space.isUnion()) {
! lvlstr = Space.levelToString(space.getLevel());
! } else {
! lvlstr = Space.levelToString(space.getLevel() + 1);
! }
add(new ElementContainer(lvlstr, space.getElements()));
add(new GeometryContainer("Geometry", space));
--- 638,642 ----
Set surfaces = space.getEnvelope();
add(new SurfaceContainer("Envelope", surfaces));
! String lvlstr = Space.levelToString(space.getLevel() + 1);
add(new ElementContainer(lvlstr, space.getElements()));
add(new GeometryContainer("Geometry", space));
|