Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25178/src/net/sourceforge/bprocessor/model
Modified Files:
Space.java
Log Message:
A few bug fixes
Index: Space.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** Space.java 16 Nov 2006 23:20:39 -0000 1.101
--- Space.java 16 Nov 2006 23:29:10 -0000 1.102
***************
*** 266,275 ****
}
if (this.level == SPACE_LEVEL) {
! cur = new Space("", Space.CONSTRUCTION, ELEMENT_LEVEL, false);
cur.setClassification(cl);
return cur;
}
if (this.level == PROJECT_LEVEL) {
! cur = new Space("", Space.CONSTRUCTION, SPACE_LEVEL, false);
cur.setClassification(cl);
return cur;
--- 266,275 ----
}
if (this.level == SPACE_LEVEL) {
! cur = new Space("", Space.CONSTRUCTION, ELEMENT_LEVEL, true);
cur.setClassification(cl);
return cur;
}
if (this.level == PROJECT_LEVEL) {
! cur = new Space("", Space.CONSTRUCTION, SPACE_LEVEL, true);
cur.setClassification(cl);
return cur;
***************
*** 312,326 ****
}
if (this.level == ELEMENT_LEVEL) {
! cur = new Space("", Space.FUNCTIONAL , PART_LEVEL, false);
cur.setClassification(cl);
return cur;
}
if (this.level == SPACE_LEVEL) {
! cur = new Space("", Space.FUNCTIONAL, ELEMENT_LEVEL, false);
cur.setClassification(cl);
return cur;
}
if (this.level == PROJECT_LEVEL) {
! cur = new Space("", Space.FUNCTIONAL, SPACE_LEVEL, false);
cur.setClassification(cl);
return cur;
--- 312,326 ----
}
if (this.level == ELEMENT_LEVEL) {
! cur = new Space("", Space.FUNCTIONAL , PART_LEVEL, true);
cur.setClassification(cl);
return cur;
}
if (this.level == SPACE_LEVEL) {
! cur = new Space("", Space.FUNCTIONAL, ELEMENT_LEVEL, true);
cur.setClassification(cl);
return cur;
}
if (this.level == PROJECT_LEVEL) {
! cur = new Space("", Space.FUNCTIONAL, SPACE_LEVEL, true);
cur.setClassification(cl);
return cur;
***************
*** 1469,1478 ****
if (getLevel() == Space.ELEMENT_LEVEL) {
setClassification(((Classification)a.getClassification()));
- getOwner().setClassification(classification.getParent());
}
if (getLevel() == Space.PART_LEVEL) {
setClassification(((Classification)a.getClassification()));
- getOwner().setClassification(classification.getParent());
- getOwner().getOwner().setClassification(classification.getParent().getParent());
}
} else if (a.getName().equals("Transparent")) {
--- 1469,1475 ----
|