Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15113/src/net/sourceforge/bprocessor/gui
Modified Files:
PopupMenu.java
Log Message:
offset command
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/PopupMenu.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** PopupMenu.java 12 Nov 2007 08:05:30 -0000 1.70
--- PopupMenu.java 16 Nov 2007 13:15:04 -0000 1.71
***************
*** 95,105 ****
menu.add(flip);
! AbstractAction action = new GeometricMenuAction(surfaces, "Smooth...") {
! public void actionPerformed(ActionEvent event) {
! Command command = new Command.Smooth((Surface) entities.iterator().next());
! AttributeView.instance().display(command);
! }
! };
! menu.add(action);
}
return menu;
--- 95,117 ----
menu.add(flip);
! {
! AbstractAction action = new GeometricMenuAction(surfaces, "Smooth...") {
! public void actionPerformed(ActionEvent event) {
! Command command = new Command.Smooth((Surface) entities.iterator().next());
! AttributeView.instance().display(command);
! }
! };
! menu.add(action);
! }
! {
! AbstractAction action = new GeometricMenuAction(surfaces, "Offset...") {
! public void actionPerformed(ActionEvent event) {
! Surface surface = (Surface) entities.iterator().next();
! Command command = new Command.Offset(surface.getEdges());
! AttributeView.instance().display(command);
! }
! };
! menu.add(action);
! }
}
return menu;
|