[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.294, 1.295 PopupMenu.jav
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-05-20 10:58:59
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32587/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java PopupMenu.java Log Message: Changed a lot of calls to changed() Index: PopupMenu.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/PopupMenu.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** PopupMenu.java 19 May 2010 15:45:42 -0000 1.43 --- PopupMenu.java 20 May 2010 10:58:51 -0000 1.44 *************** *** 313,317 **** } } ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 313,317 ---- } } ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 333,337 **** public void actionPerformed(ActionEvent event) { space.reduce(); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 333,337 ---- public void actionPerformed(ActionEvent event) { space.reduce(); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 343,347 **** public void actionPerformed(ActionEvent event) { space.clear(); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 343,347 ---- public void actionPerformed(ActionEvent event) { space.clear(); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 420,424 **** } Project.getInstance().world().add(union); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 420,424 ---- } Project.getInstance().world().add(union); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 437,441 **** Project.getInstance().addCalalogObject(component); Selection.primary().clear(); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 437,441 ---- Project.getInstance().addCalalogObject(component); Selection.primary().clear(); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 512,516 **** System.out.println("detail " + modellor); Modellor detailer = modellor.newInstance(space); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().addObserver(detailer); } --- 512,516 ---- System.out.println("detail " + modellor); Modellor detailer = modellor.newInstance(space); ! Project.getInstance().changed(); Project.getInstance().addObserver(detailer); } *************** *** 544,548 **** Project p = Project.getInstance(); p.getGlobals().remove(attribute); ! p.changed(p); p.checkpoint(); } --- 544,548 ---- Project p = Project.getInstance(); p.getGlobals().remove(attribute); ! p.changed(); p.checkpoint(); } *************** *** 564,568 **** for (Geometric current : entities) { current.erase(); ! Project.getInstance().changed(current); } Project.getInstance().changed(Geometric.collect(entities)); --- 564,568 ---- for (Geometric current : entities) { current.erase(); ! Project.getInstance().changed(); } Project.getInstance().changed(Geometric.collect(entities)); *************** *** 642,646 **** Selection.primary().clear(); Project.getInstance().getActiveSpace().add(union); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 642,646 ---- Selection.primary().clear(); Project.getInstance().getActiveSpace().add(union); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 654,658 **** Geometric geometric = entities.iterator().next(); Project.getInstance().setActiveCoordinateSystem(CoordinateSystem.systemFor(geometric)); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 654,658 ---- Geometric geometric = entities.iterator().next(); Project.getInstance().setActiveCoordinateSystem(CoordinateSystem.systemFor(geometric)); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 756,760 **** current.update(); } ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 756,760 ---- current.update(); } ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 771,775 **** current.update(); } ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 771,775 ---- current.update(); } ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 810,814 **** } } ! project.changed(project); project.checkpoint(); } --- 810,814 ---- } } ! project.changed(); project.checkpoint(); } *************** *** 914,918 **** public void actionPerformed(ActionEvent event) { Project.getInstance().world().reduce(); ! Project.getInstance().changed(Project.getInstance()); Project.getInstance().checkpoint(); } --- 914,918 ---- public void actionPerformed(ActionEvent event) { Project.getInstance().world().reduce(); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 941,945 **** space.insert(current); } ! Project.getInstance().changed(space); Project.getInstance().checkpoint(); } --- 941,945 ---- space.insert(current); } ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 951,955 **** SurfaceAnalysis analysis = new SurfaceAnalysis(); analysis.clearPlanes(space); ! Project.getInstance().changed(space); Project.getInstance().checkpoint(); } --- 951,955 ---- SurfaceAnalysis analysis = new SurfaceAnalysis(); analysis.clearPlanes(space); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 961,965 **** SurfaceAnalysis analysis = new SurfaceAnalysis(); analysis.surfaceAnalysis(space); ! Project.getInstance().changed(space); Project.getInstance().checkpoint(); } --- 961,965 ---- SurfaceAnalysis analysis = new SurfaceAnalysis(); analysis.surfaceAnalysis(space); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 971,975 **** SurfaceAnalysis analysis = new SurfaceAnalysis(); analysis.clearSurfaces(space); ! Project.getInstance().changed(space); Project.getInstance().checkpoint(); } --- 971,975 ---- SurfaceAnalysis analysis = new SurfaceAnalysis(); analysis.clearSurfaces(space); ! Project.getInstance().changed(); Project.getInstance().checkpoint(); } *************** *** 999,1003 **** tool.activate(instance); } ! project.changed(world); project.checkpoint(); }; --- 999,1003 ---- tool.activate(instance); } ! project.changed(); project.checkpoint(); }; *************** *** 1016,1020 **** tool.activate(space); } ! project.changed(world); project.checkpoint(); }; --- 1016,1020 ---- tool.activate(space); } ! project.changed(); project.checkpoint(); }; Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.294 retrieving revision 1.295 diff -C2 -d -r1.294 -r1.295 *** View.java 5 Feb 2010 15:00:31 -0000 1.294 --- View.java 20 May 2010 10:58:51 -0000 1.295 *************** *** 594,598 **** } Selection.primary().clear(); ! Project.getInstance().changed(Project.getInstance()); } --- 594,598 ---- } Selection.primary().clear(); ! Project.getInstance().changed(); } |