Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2922/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java SpaceTreeView.java
Log Message:
Fixed an update mistake in GenericTreeView, where wrong child were updated
Removed some non-working update in ClassificationContainer
Fixed an error en Mesh.split algorithm that caused ordering of edges to be wrong in surfaces
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.90
retrieving revision 1.91
diff -C2 -d -r1.90 -r1.91
*** GenericTreeView.java 23 Mar 2007 12:53:45 -0000 1.90
--- GenericTreeView.java 27 Mar 2007 08:47:07 -0000 1.91
***************
*** 1040,1049 ****
*/
public void update(Object o) {
! if (o instanceof Classification) {
! Classification c = (Classification) o;
! ((ClassificationContainer)this.getChildAt(0)).update(c.getChildren());
! ((ClassificationContainer)this.getChildAt(1)).update(c.getChildren());
} else {
! log.warn("Expected a Classification but found a " + o);
}
}
--- 1040,1049 ----
*/
public void update(Object o) {
! if (o instanceof Project) {
! Project c = (Project) o;
! //((ClassificationContainer)this.getChildAt(0)).update(c.getConstructionClas().getChildren());
! //((ClassificationContainer)this.getChildAt(1)).update(c.getFunctionalClas().getChildren());
} else {
! log.warn("Expected a Classification but found a " + o.getClass().getName());
}
}
Index: SpaceTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/SpaceTreeView.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** SpaceTreeView.java 19 Mar 2007 12:37:10 -0000 1.20
--- SpaceTreeView.java 27 Mar 2007 08:47:07 -0000 1.21
***************
*** 45,50 ****
((GenericNode)root.getChildAt(2)).update(Project.getInstance().getConstraints());
((GenericNode)root.getChildAt(3)).update(Project.getInstance().getGlobals());
! ((GenericNode)root.getChildAt(3)).update(Project.getInstance());
! ((GenericNode)root.getChildAt(4)).update(Project.getInstance().getConstructors());
}
}
--- 45,50 ----
((GenericNode)root.getChildAt(2)).update(Project.getInstance().getConstraints());
((GenericNode)root.getChildAt(3)).update(Project.getInstance().getGlobals());
! ((GenericNode)root.getChildAt(4)).update(Project.getInstance());
! ((GenericNode)root.getChildAt(5)).update(Project.getInstance().getConstructors());
}
}
|