Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6000/src/net/sourceforge/bprocessor/gui
Modified Files:
PopupMenu.java
Log Message:
removed illigal instanciate popup on space
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/PopupMenu.java,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** PopupMenu.java 17 Dec 2007 13:09:35 -0000 1.92
--- PopupMenu.java 17 Dec 2007 20:00:08 -0000 1.93
***************
*** 38,42 ****
import net.sourceforge.bprocessor.model.Geometric;
import net.sourceforge.bprocessor.model.Geometry;
- import net.sourceforge.bprocessor.model.Instance;
import net.sourceforge.bprocessor.model.Mesh;
import net.sourceforge.bprocessor.model.Project;
--- 38,41 ----
***************
*** 247,268 ****
menu.add(action);
}
- AbstractAction instantiate = new CollectionMenuAction(s, "Instantiate") {
- public void actionPerformed(ActionEvent arg0) {
- if (col != null) {
- /*FIXME better if there were made a union if more than one
- and a instance of it */
- Iterator iter = col.iterator();
- while (iter.hasNext()) {
- Container space = (Container)iter.next();
- Instance instance = new Instance("Instance of " + space.getName());
- instance.setProto(space);
- space.getOwner().add(instance);
- }
- Project.getInstance().changed(Project.getInstance());
- Project.getInstance().checkpoint();
- }
- }
- };
- menu.add(instantiate);
if (s.size() == 1) {
// Some options do only apply to one space
--- 246,249 ----
|