[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.42, 1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-09-17 19:05:51
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22152/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: Space instantiation implemented Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** GenericTreeView.java 15 Sep 2006 12:06:34 -0000 1.42 --- GenericTreeView.java 17 Sep 2006 19:04:53 -0000 1.43 *************** *** 528,531 **** --- 528,541 ---- }; pm.add(copy); + AbstractAction instantiate = new EntityAction((Entity)object, "Instantiate") { + public void actionPerformed(ActionEvent arg0) { + if (entity != null) { + Space space = new Space("Copy", Space.CONSTRUCTION, false); + space.setProto((Space) entity); + ((Space) entity).getOwner().add(space); + } + } + }; + pm.add(instantiate); AbstractAction edit = new EntityAction((Entity)object, "Edit") { public void actionPerformed(ActionEvent arg0) { |