Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30691/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
SelectStrategy.java
Log Message:
Double-click on union initiates edit
Index: SelectStrategy.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SelectStrategy.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SelectStrategy.java 3 Dec 2006 17:48:17 -0000 1.5
--- SelectStrategy.java 25 Jan 2007 12:23:04 -0000 1.6
***************
*** 19,23 ****
--- 19,25 ----
import net.sourceforge.bprocessor.model.Constructor;
import net.sourceforge.bprocessor.model.Edge;
+ import net.sourceforge.bprocessor.model.Project;
import net.sourceforge.bprocessor.model.Selection;
+ import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Surface;
import net.sourceforge.bprocessor.model.Vertex;
***************
*** 102,106 ****
target = view.getObjectAtPoint(x, y, View.OBJECTS);
if (e.getClickCount() >= 2) {
! if (target instanceof Surface) {
Surface surface = (Surface) target;
if (surface.getBackDomain() != null) {
--- 104,111 ----
target = view.getObjectAtPoint(x, y, View.OBJECTS);
if (e.getClickCount() >= 2) {
! if (target instanceof Space) {
! Space space = (Space) target;
! Project.getInstance().setActiveSpace(space);
! } else if (target instanceof Surface) {
Surface surface = (Surface) target;
if (surface.getBackDomain() != null) {
|