Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20300/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
SpaceTool.java
Log Message:
made some changes in the way spaces are drawn
Index: SpaceTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SpaceTool.java,v
retrieving revision 1.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** SpaceTool.java 24 Aug 2007 09:54:27 -0000 1.84
--- SpaceTool.java 28 Aug 2007 07:04:47 -0000 1.85
***************
*** 109,131 ****
}
} else {
! Iterator sel = Selection.primary().iterator();
! Class<? extends Object> type = null;
! while (sel.hasNext()) {
! Object next = sel.next();
! if (type == null) {
! type = next.getClass();
! } else if (type == next.getClass()) {
! // do nothing just continue;
! continue;
! } else {
! return PopupMenu.getEntiesMenu(new LinkedList(Selection.primary()));
! }
! }
! if (type == Space.class) {
! return PopupMenu.getSpaceMenu(Selection.primary());
! } else if (type == Surface.class) {
! return PopupMenu.getSurfaceMenu(Selection.primary());
} else {
! return PopupMenu.getEntiesMenu(new LinkedList(Selection.primary()));
}
}
--- 109,116 ----
}
} else {
! if (Selection.primary().contains(target)) {
! return PopupMenu.makeSelectionMenu();
} else {
! return PopupMenu.getBackgroundMenu();
}
}
|