Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12564/src/net/sourceforge/bprocessor/model
Modified Files:
Surface.java
Log Message:
Surface is now using the new link functionality.
Index: Surface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** Surface.java 13 Apr 2006 14:01:16 -0000 1.92
--- Surface.java 24 Apr 2006 08:45:48 -0000 1.93
***************
*** 965,968 ****
--- 965,984 ----
} else if (a.getName().equals("Exterior")) {
continue;
+ } else if (a.getName().equals("Space1")) {
+ Iterator it = Project.getInstance().getSpaces().iterator();
+ while (it.hasNext()) {
+ Space current = (Space) it.next();
+ if (current.getName().equals(a.getValue())) {
+ setFrontDomain(current);
+ }
+ }
+ } else if (a.getName().equals("Space2")) {
+ Iterator it = Project.getInstance().getSpaces().iterator();
+ while (it.hasNext()) {
+ Space current = (Space) it.next();
+ if (current.getName().equals(a.getValue())) {
+ setBackDomain(current);
+ }
+ }
} else if (a.getName().equals("Front Material")) {
setFrontMaterial((Material) a.getValue());
***************
*** 977,980 ****
--- 993,997 ----
}
}
+ changed();
}
***************
*** 987,993 ****
res.add(new Attribute("Name", getName(), false));
if (getFrontDomain() != null) {
! res.add(new Attribute("Space", getFrontDomain(), false));
} else {
! res.add(new Attribute("Space", "None", false));
}
--- 1004,1010 ----
res.add(new Attribute("Name", getName(), false));
if (getFrontDomain() != null) {
! res.add(new Attribute("Space1", getFrontDomain(), true));
} else {
! res.add(new Attribute("Space1", "None", true));
}
***************
*** 1005,1011 ****
if (getBackDomain() != null) {
! res.add(new Attribute("Space", getBackDomain(), false));
} else {
! res.add(new Attribute("Space", "None", false));
}
--- 1022,1028 ----
if (getBackDomain() != null) {
! res.add(new Attribute("Space2", getBackDomain(), true));
} else {
! res.add(new Attribute("Space2", "None", true));
}
|