Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12153/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
FinalMoveTool.java
Log Message:
Refacted add/remove protected in Space
Index: FinalMoveTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/FinalMoveTool.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** FinalMoveTool.java 29 May 2007 11:49:14 -0000 1.7
--- FinalMoveTool.java 29 May 2007 12:39:13 -0000 1.8
***************
*** 11,15 ****
--- 11,17 ----
import java.awt.event.MouseEvent;
import java.util.Collection;
+ import java.util.HashMap;
import java.util.LinkedList;
+ import java.util.Map;
import net.sourceforge.bprocessor.gl.GLView;
***************
*** 122,131 ****
copy = e.isAltDown();
!
! Collection<Geometric> copied = new LinkedList();
! for (Geometric current : geometrics) {
! // empty
}
!
vertices = Geometry.collect(geometrics);
affected = getAffected(geometrics);
--- 124,135 ----
copy = e.isAltDown();
! if (copy) {
! Collection<Geometric> copied = new LinkedList();
! Map map = new HashMap();
! for (Geometric current : geometrics) {
! copied.add(current.copy(map));
! }
}
!
vertices = Geometry.collect(geometrics);
affected = getAffected(geometrics);
|