Thread: [Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java,1.9,1.10 Sp
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-01-23 10:16:36
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28556/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java SpaceTreeView.java CameraTreeView.java SurfaceTreeView.java Log Message: Startet implementation of Mesh. Changed uses of Set to Collection. Index: SurfaceTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/SurfaceTreeView.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SurfaceTreeView.java 4 Jan 2006 14:29:55 -0000 1.3 --- SurfaceTreeView.java 23 Jan 2006 10:16:26 -0000 1.4 *************** *** 8,12 **** package net.sourceforge.bprocessor.gui.treeview; ! import java.util.Set; import net.sourceforge.bprocessor.model.Project; --- 8,12 ---- package net.sourceforge.bprocessor.gui.treeview; ! import java.util.Collection; import net.sourceforge.bprocessor.model.Project; *************** *** 28,32 **** public void update() { root.removeAllChildren(); ! Set surfaces = Project.getInstance().getSurfaces(); root.add(new SurfaceContainer("Surfaces", surfaces)); model.nodeStructureChanged(root); --- 28,32 ---- public void update() { root.removeAllChildren(); ! Collection surfaces = Project.getInstance().getSurfaces(); root.add(new SurfaceContainer("Surfaces", surfaces)); model.nodeStructureChanged(root); Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** GenericTreeView.java 19 Jan 2006 10:59:40 -0000 1.9 --- GenericTreeView.java 23 Jan 2006 10:16:26 -0000 1.10 *************** *** 7,10 **** --- 7,11 ---- package net.sourceforge.bprocessor.gui.treeview; + import java.util.Collection; import java.util.Iterator; import java.util.List; *************** *** 245,249 **** * @param spaces The spaces */ ! public SpaceContainer(String name, Set spaces) { super(name); Iterator iter = spaces.iterator(); --- 246,250 ---- * @param spaces The spaces */ ! public SpaceContainer(String name, Collection spaces) { super(name); Iterator iter = spaces.iterator(); *************** *** 264,268 **** * @param surfaces The surfaces */ ! public SurfaceContainer(String name, Set surfaces) { super(name); Iterator iter = surfaces.iterator(); --- 265,269 ---- * @param surfaces The surfaces */ ! public SurfaceContainer(String name, Collection surfaces) { super(name); Iterator iter = surfaces.iterator(); Index: CameraTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/CameraTreeView.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CameraTreeView.java 19 Jan 2006 10:59:40 -0000 1.1 --- CameraTreeView.java 23 Jan 2006 10:16:26 -0000 1.2 *************** *** 8,15 **** package net.sourceforge.bprocessor.gui.treeview; import java.util.Iterator; - import java.util.Set; - import net.sourceforge.bprocessor.gui.treeview.GenericTreeView.CameraNode; import net.sourceforge.bprocessor.model.Camera; import net.sourceforge.bprocessor.model.Project; --- 8,14 ---- package net.sourceforge.bprocessor.gui.treeview; + import java.util.Collection; import java.util.Iterator; import net.sourceforge.bprocessor.model.Camera; import net.sourceforge.bprocessor.model.Project; *************** *** 32,36 **** public void update() { root.removeAllChildren(); ! Set cameras = Project.getInstance().getCameras(); Iterator iter = cameras.iterator(); while (iter.hasNext()) { --- 31,35 ---- public void update() { root.removeAllChildren(); ! Collection cameras = Project.getInstance().getCameras(); Iterator iter = cameras.iterator(); while (iter.hasNext()) { Index: SpaceTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/SpaceTreeView.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SpaceTreeView.java 4 Jan 2006 14:29:55 -0000 1.3 --- SpaceTreeView.java 23 Jan 2006 10:16:26 -0000 1.4 *************** *** 8,12 **** package net.sourceforge.bprocessor.gui.treeview; ! import java.util.Set; import net.sourceforge.bprocessor.model.Project; --- 8,12 ---- package net.sourceforge.bprocessor.gui.treeview; ! import java.util.Collection; import net.sourceforge.bprocessor.model.Project; *************** *** 29,35 **** public void update() { root.removeAllChildren(); ! Set construction = Project.getInstance().getConstructionSpaces(); ! Set functional = Project.getInstance().getFunctionalSpaces(); ! Set surfaces = Project.getInstance().getSurfaces(); root.add(new SpaceContainer("Functional", functional)); root.add(new SpaceContainer("Construction", construction)); --- 29,35 ---- public void update() { root.removeAllChildren(); ! Collection construction = Project.getInstance().getConstructionSpaces(); ! Collection functional = Project.getInstance().getFunctionalSpaces(); ! Collection surfaces = Project.getInstance().getSurfaces(); root.add(new SpaceContainer("Functional", functional)); root.add(new SpaceContainer("Construction", construction)); |