[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view Display.java, 1.94, 1.95 PopupMenu.ja
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2009-06-26 15:39:17
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2515/src/net/sourceforge/bprocessor/gl/view Modified Files: Display.java PopupMenu.java Log Message: Instances etc. Index: Display.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -d -r1.94 -r1.95 *** Display.java 25 Jun 2009 22:17:40 -0000 1.94 --- Display.java 26 Jun 2009 15:39:13 -0000 1.95 *************** *** 1146,1152 **** disableClipplanes(); if (grid != null) { ! gl.glDepthMask(false); ! draw(grid); ! gl.glDepthMask(true); } paintConstructors(constructors); --- 1146,1154 ---- disableClipplanes(); if (grid != null) { ! if (!hidden.contains(grid)) { ! gl.glDepthMask(false); ! draw(grid); ! gl.glDepthMask(true); ! } } paintConstructors(constructors); Index: PopupMenu.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/PopupMenu.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** PopupMenu.java 26 Jun 2009 12:39:54 -0000 1.33 --- PopupMenu.java 26 Jun 2009 15:39:13 -0000 1.34 *************** *** 1008,1011 **** --- 1008,1028 ---- }; }); + menu.add(new CollectionMenuAction(components, "Make Duplicate") { + public void actionPerformed(ActionEvent e) { + Project project = Project.getInstance(); + Space world = project.getActiveSpace(); + List<Component> components = new LinkedList(col); + for (Component component : components) { + project.addCalalogObject(component); + Space space = component.makeDuplicate(); + world.add(space); + Selection.primary().set(space); + FinalMoveTool tool = (FinalMoveTool)editor.changeTool(Tool.FINAL_MOVE_TOOL); + tool.activate(space); + } + project.changed(world); + project.checkpoint(); + }; + }); return menu; } |