Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15177/src/net/sourceforge/bprocessor/gui
Modified Files:
PopupMenu.java
Log Message:
command to insert a net based on a surface
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/PopupMenu.java,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** PopupMenu.java 2 Dec 2007 12:02:20 -0000 1.81
--- PopupMenu.java 3 Dec 2007 15:01:42 -0000 1.82
***************
*** 137,140 ****
--- 137,150 ----
menu.add(action);
}
+ {
+ AbstractAction action = new GeometricMenuAction(surfaces, "Insert Net...") {
+ public void actionPerformed(ActionEvent event) {
+ Surface surface = (Surface) entities.iterator().next();
+ Command command = new Command.InsertNet(surface);
+ AttributeView.instance().display(command);
+ }
+ };
+ menu.add(action);
+ }
}
return menu;
|