Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23501/src/net/sourceforge/bprocessor/gui
Modified Files:
PopupMenu.java
Log Message:
frame command
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/PopupMenu.java,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** PopupMenu.java 16 Nov 2007 14:26:26 -0000 1.72
--- PopupMenu.java 18 Nov 2007 19:14:36 -0000 1.73
***************
*** 199,203 ****
menu.addSeparator();
!
AbstractAction copy = new CollectionMenuAction(s, "Duplicate") {
public void actionPerformed(ActionEvent arg0) {
--- 199,239 ----
menu.addSeparator();
!
! {
! AbstractAction action = new CollectionMenuAction(s, "Dissolve") {
! public void actionPerformed(ActionEvent event) {
! List<Space> spaces = new LinkedList(col);
! for (Space space : spaces) {
! Collection<Vertex> vertices = new LinkedList(space.getVertices());
! Collection<Edge> edges = new LinkedList(space.getEdges());
! Collection<Surface> surfaces = new LinkedList(space.getSurfaces());
!
! for (Vertex current : vertices) {
! space.remove(current);
! }
! for (Vertex current : vertices) {
! space.getOwner().insert(current);
! }
! for (Edge current : edges) {
! space.remove(current);
! }
! for (Edge current : edges) {
! space.getOwner().insert(current);
! }
!
! for (Surface current : surfaces) {
! space.remove(current);
! current.setBackDomain(null);
! current.setFrontDomain(null);
! }
! for (Surface current : surfaces) {
! space.getOwner().insert(current);
! }
!
! }
! }
! };
! menu.add(action);
! }
AbstractAction copy = new CollectionMenuAction(s, "Duplicate") {
public void actionPerformed(ActionEvent arg0) {
***************
*** 260,263 ****
--- 296,309 ----
menu.add(action);
}
+ {
+ AbstractAction action = new SpaceMenuAction(sp, "Frame..") {
+ public void actionPerformed(ActionEvent event) {
+ Command command = new Command.Frame(space);
+ AttributeView.instance().display(command);
+ }
+ };
+ menu.add(action);
+ }
+
if (CHECKS) {
AbstractAction envelope = new SpaceMenuAction(sp, "Compute Envelope") {
|