[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview ReferenceAttribute.java, 1.2,
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2009-06-25 22:17:44
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17492/src/net/sourceforge/bprocessor/gui/attrview Modified Files: ReferenceAttribute.java ClassificationTextAttribute.java LinkAttribute.java Log Message: Renamed Space to Item and Container to Space Index: ClassificationTextAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/ClassificationTextAttribute.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ClassificationTextAttribute.java 13 Dec 2007 12:00:55 -0000 1.11 --- ClassificationTextAttribute.java 25 Jun 2009 22:17:33 -0000 1.12 *************** *** 40,44 **** import net.sourceforge.bprocessor.model.Classification; import net.sourceforge.bprocessor.model.Project; ! import net.sourceforge.bprocessor.model.Container; import net.sourceforge.bprocessor.model.Structure; --- 40,44 ---- import net.sourceforge.bprocessor.model.Classification; import net.sourceforge.bprocessor.model.Project; ! import net.sourceforge.bprocessor.model.Space; import net.sourceforge.bprocessor.model.Structure; *************** *** 318,327 **** Vector cur = ((Structure) attribute.getValue()).getChildren(); if (attribute.getValue() instanceof Classification) { ! if (((Classification) attribute.getValue()).getType() == Container.CONSTRUCTION) { cur.addAll(Project.getInstance().getClassification("-99", ! Container.CONSTRUCTION).getChildren()); ! } else if (((Classification) attribute.getValue()).getType() == Container.FUNCTIONAL) { cur.addAll(Project.getInstance().getClassification("-99", ! Container.FUNCTIONAL).getChildren()); } else { log.warn(((Classification) attribute.getValue()).getType() + " is a unknown type"); --- 318,327 ---- Vector cur = ((Structure) attribute.getValue()).getChildren(); if (attribute.getValue() instanceof Classification) { ! if (((Classification) attribute.getValue()).getType() == Space.CONSTRUCTION) { cur.addAll(Project.getInstance().getClassification("-99", ! Space.CONSTRUCTION).getChildren()); ! } else if (((Classification) attribute.getValue()).getType() == Space.FUNCTIONAL) { cur.addAll(Project.getInstance().getClassification("-99", ! Space.FUNCTIONAL).getChildren()); } else { log.warn(((Classification) attribute.getValue()).getType() + " is a unknown type"); Index: LinkAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/LinkAttribute.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** LinkAttribute.java 19 Dec 2007 09:03:31 -0000 1.20 --- LinkAttribute.java 25 Jun 2009 22:17:33 -0000 1.21 *************** *** 37,41 **** import net.sourceforge.bprocessor.model.Project; import net.sourceforge.bprocessor.model.Selection; ! import net.sourceforge.bprocessor.model.Container; /** --- 37,41 ---- import net.sourceforge.bprocessor.model.Project; import net.sourceforge.bprocessor.model.Selection; ! import net.sourceforge.bprocessor.model.Space; /** *************** *** 174,179 **** JLabel valueLabel; if (value instanceof Entity) { ! if (value instanceof Container) { ! s = ((Container)value).getDisplayName(); } else { s = ((Entity)value).getName(); --- 174,179 ---- JLabel valueLabel; if (value instanceof Entity) { ! if (value instanceof Space) { ! s = ((Space)value).getDisplayName(); } else { s = ((Entity)value).getName(); *************** *** 410,414 **** new Comparator() { public int compare(Object s1, Object s2) { ! return ((Container) s1).getName().compareToIgnoreCase(((Container) s2).getName()); } }; --- 410,414 ---- new Comparator() { public int compare(Object s1, Object s2) { ! return ((Space) s1).getName().compareToIgnoreCase(((Space) s2).getName()); } }; *************** *** 417,421 **** new Comparator() { public int compare(Object s1, Object s2) { ! return ((Container) s1).getId().compareTo(((Container) s2).getId()); } }; --- 417,421 ---- new Comparator() { public int compare(Object s1, Object s2) { ! return ((Space) s1).getId().compareTo(((Space) s2).getId()); } }; *************** *** 427,431 **** Iterator it = sort.iterator(); while (it.hasNext()) { ! Container current = (Container) it.next(); String name = current.getName() + "-" + current.getId().toString(); if (name.startsWith(string) && !name.equalsIgnoreCase(string)) { --- 427,431 ---- Iterator it = sort.iterator(); while (it.hasNext()) { ! Space current = (Space) it.next(); String name = current.getName() + "-" + current.getId().toString(); if (name.startsWith(string) && !name.equalsIgnoreCase(string)) { Index: ReferenceAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/ReferenceAttribute.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ReferenceAttribute.java 19 Dec 2007 09:03:31 -0000 1.2 --- ReferenceAttribute.java 25 Jun 2009 22:17:33 -0000 1.3 *************** *** 43,47 **** import net.sourceforge.bprocessor.model.Reference; import net.sourceforge.bprocessor.model.Selection; ! import net.sourceforge.bprocessor.model.Container; /** --- 43,47 ---- import net.sourceforge.bprocessor.model.Reference; import net.sourceforge.bprocessor.model.Selection; ! import net.sourceforge.bprocessor.model.Space; /** *************** *** 196,201 **** JLabel valueLabel; if (value instanceof Entity) { ! if (value instanceof Container) { ! s = ((Container)value).getDisplayName(); } else { s = ((Entity)value).getName(); --- 196,201 ---- JLabel valueLabel; if (value instanceof Entity) { ! if (value instanceof Space) { ! s = ((Space)value).getDisplayName(); } else { s = ((Entity)value).getName(); *************** *** 471,475 **** new Comparator() { public int compare(Object s1, Object s2) { ! return ((Container) s1).getName().compareToIgnoreCase(((Container) s2).getName()); } }; --- 471,475 ---- new Comparator() { public int compare(Object s1, Object s2) { ! return ((Space) s1).getName().compareToIgnoreCase(((Space) s2).getName()); } }; *************** *** 478,482 **** new Comparator() { public int compare(Object s1, Object s2) { ! return ((Container) s1).getId().compareTo(((Container) s2).getId()); } }; --- 478,482 ---- new Comparator() { public int compare(Object s1, Object s2) { ! return ((Space) s1).getId().compareTo(((Space) s2).getId()); } }; *************** *** 488,492 **** Iterator it = sort.iterator(); while (it.hasNext()) { ! Container current = (Container) it.next(); String name = current.getName() + "-" + current.getId().toString(); if (name.startsWith(string) && !name.equalsIgnoreCase(string)) { --- 488,492 ---- Iterator it = sort.iterator(); while (it.hasNext()) { ! Space current = (Space) it.next(); String name = current.getName() + "-" + current.getId().toString(); if (name.startsWith(string) && !name.equalsIgnoreCase(string)) { |