Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18032/src/net/sourceforge/bprocessor/model
Modified Files:
Space.java
Log Message:
clean up
Index: Space.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v
retrieving revision 1.184
retrieving revision 1.185
diff -C2 -d -r1.184 -r1.185
*** Space.java 16 Oct 2007 11:02:48 -0000 1.184
--- Space.java 17 Oct 2007 09:08:15 -0000 1.185
***************
*** 261,271 ****
* @param cl The classification
* @return The space
- * @throws Exception If a part is being extended
*/
! public Space createConstructionSpace(Classification cl) throws Exception {
Space cur;
- if (this.level == PART_LEVEL) {
- throw new Exception("Not legal to make further levels of detail, max level is PART");
- }
if (this.level == ELEMENT_LEVEL) {
cur = new Space("", Space.CONSTRUCTION, PART_LEVEL, false);
--- 261,267 ----
* @param cl The classification
* @return The space
*/
! public Space createConstructionSpace(Classification cl) {
Space cur;
if (this.level == ELEMENT_LEVEL) {
cur = new Space("", Space.CONSTRUCTION, PART_LEVEL, false);
***************
*** 290,299 ****
* @param name The name
* @return The space
- * @throws Exception If a part is being extended
*/
! public Space createFunctionalSpace(String name) throws Exception {
! if (this.level == PART_LEVEL) {
! throw new Exception("Not leagal to make further levels of detail, max level is PART");
! }
if (this.level == ELEMENT_LEVEL) {
return new Space(name, Space.FUNCTIONAL, PART_LEVEL, true);
--- 286,291 ----
* @param name The name
* @return The space
*/
! public Space createFunctionalSpace(String name) {
if (this.level == ELEMENT_LEVEL) {
return new Space(name, Space.FUNCTIONAL, PART_LEVEL, true);
|