Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23956/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java
Log Message:
Added repaintTree to edit menu and made Geometry appear as the first in the Project tree... Later on it should be sorted...
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** GenericTreeView.java 13 Oct 2006 15:49:37 -0000 1.56
--- GenericTreeView.java 13 Oct 2006 16:26:22 -0000 1.57
***************
*** 409,412 ****
--- 409,413 ----
elem.remove(sn.getUserObject());
} else {
+ log.info("Had to insert " + sn + " into " + this);
children.add(sn);
}
***************
*** 856,864 ****
public class GeometryContainer extends ContainerNode {
! /**
! *
! */
private static final long serialVersionUID = 1L;
!
/**
* Constructor
--- 857,863 ----
public class GeometryContainer extends ContainerNode {
! /** */
private static final long serialVersionUID = 1L;
!
/**
* Constructor
***************
*** 1019,1023 ****
/**
! * Insert the given object into the node
* @param elem the elements
*/
--- 1018,1022 ----
/**
! * Insert the given objects into the node
* @param elem the elements
*/
***************
*** 1029,1033 ****
Space s = (Space)iter.next();
if (s.getLevel() == Space.PROJECT_LEVEL) {
! this.add(new GeometryContainer("Geometry", ((Project)userObject).world()));
} else {
this.add(new SpaceNode(s));
--- 1028,1032 ----
Space s = (Space)iter.next();
if (s.getLevel() == Space.PROJECT_LEVEL) {
! this.insert(new GeometryContainer("Geometry", s), 0);
} else {
this.add(new SpaceNode(s));
|