Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1470/src/net/sourceforge/bprocessor/gl/view
Modified Files:
PopupMenu.java
Log Message:
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/PopupMenu.java,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** PopupMenu.java 21 May 2010 07:29:01 -0000 1.45
--- PopupMenu.java 21 May 2010 13:14:36 -0000 1.46
***************
*** 124,136 ****
{
- 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 Planar...") {
public void actionPerformed(ActionEvent event) {
--- 124,127 ----
***************
*** 138,141 ****
--- 129,134 ----
Command command = new Command.Offset(surface.getEdges());
AttributeView.instance().display(command);
+ Project.getInstance().getActiveSpace().add(command);
+ Project.getInstance().changed();
}
};
***************
*** 148,151 ****
--- 141,146 ----
Command command = new Command.OffsetNormal(surface);
AttributeView.instance().display(command);
+ Project.getInstance().getActiveSpace().add(command);
+ Project.getInstance().changed();
}
};
***************
*** 158,161 ****
--- 153,158 ----
Command command = new Command.Extrude(surface);
AttributeView.instance().display(command);
+ Project.getInstance().getActiveSpace().add(command);
+ Project.getInstance().changed();
}
};
***************
*** 173,186 ****
}
{
- AbstractAction action = new GeometricMenuAction(surfaces, "Insert Frame...") {
- public void actionPerformed(ActionEvent event) {
- Surface surface = (Surface) entities.iterator().next();
- Command command = new Command.InsertFrame(surface);
- AttributeView.instance().display(command);
- }
- };
- menu.add(action);
- }
- {
AbstractAction action = new GeometricMenuAction(surfaces, "Tesselate") {
public void actionPerformed(ActionEvent event) {
--- 170,173 ----
|