Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26718/src/net/sourceforge/bprocessor/gl/view
Modified Files:
PopupMenu.java
Log Message:
Danhaus
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/PopupMenu.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** PopupMenu.java 18 Feb 2008 14:58:44 -0000 1.20
--- PopupMenu.java 27 Mar 2008 14:49:18 -0000 1.21
***************
*** 36,39 ****
--- 36,41 ----
import net.sourceforge.bprocessor.model.Attribute;
import net.sourceforge.bprocessor.model.Camera;
+ import net.sourceforge.bprocessor.model.Classification;
+ import net.sourceforge.bprocessor.model.ClassificationType;
import net.sourceforge.bprocessor.model.Command;
import net.sourceforge.bprocessor.model.Component;
***************
*** 157,160 ****
--- 159,172 ----
menu.add(action);
}
+ {
+ 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);
+ }
}
return menu;
***************
*** 378,381 ****
--- 390,404 ----
}
+ {
+ AbstractAction action = new SpaceMenuAction(sp, "Print Classification") {
+ public void actionPerformed(ActionEvent event) {
+ Classification classification = space.getClassification();
+ System.out.println("id " + classification.getFullId(space));
+ ClassificationType type = space.getClassificationType();
+ System.out.println("type " + type.getIndex());
+ }
+ };
+ menu.add(action);
+ }
for (Modellor current : Modellor.getRegisteredModellors()) {
if (current.application() == Modellor.DETAIL) {
|