Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22956/src/net/sourceforge/bprocessor/model
Modified Files:
Instance.java Space.java
Log Message:
Instance
Index: Instance.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Instance.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Instance.java 29 Jun 2009 08:37:37 -0000 1.11
--- Instance.java 21 Sep 2009 11:00:46 -0000 1.12
***************
*** 60,64 ****
proto = space;
if (anchor == null) {
! this.anchor = Project.getInstance().getActiveCoordinateSystem().copy();
}
}
--- 60,71 ----
proto = space;
if (anchor == null) {
! Collection<CoordinateSystem> anchors = space.getCoordinateSystems();
! if (anchors.size() > 0) {
! anchor = anchors.iterator().next().copy();
! } else {
! CoordinateSystem system
! = (CoordinateSystem) Project.getInstance().world().getConstructor(1);
! anchor = system.copy();
! }
}
}
Index: Space.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v
retrieving revision 1.244
retrieving revision 1.245
diff -C2 -d -r1.244 -r1.245
*** Space.java 9 Sep 2009 10:31:00 -0000 1.244
--- Space.java 21 Sep 2009 11:00:46 -0000 1.245
***************
*** 498,501 ****
--- 498,510 ----
/**
+ *
+ * @param id id
+ * @return constructor
+ */
+ public Constructor getConstructor(long id) {
+ return constructors.get(id);
+ }
+
+ /**
* Set the set of connstructors in the map to the given map
* @param constructors the constructors
|