[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview GenericPanel.java, 1.40, 1.41 C
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-08-10 09:27:44
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23568/src/net/sourceforge/bprocessor/gui/attrview Modified Files: GenericPanel.java ClassificationIdAttribute.java Log Message: load of types works Index: GenericPanel.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/GenericPanel.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** GenericPanel.java 9 Aug 2007 16:07:48 -0000 1.40 --- GenericPanel.java 10 Aug 2007 09:26:57 -0000 1.41 *************** *** 203,208 **** genAttributes.add(catext); where.add(new AttributeRow(catext)); ! if (a.getThe2ndValue() instanceof Classification) { ! Classification c = (Classification)a.getThe2ndValue(); if (c != null && !c.getId().equalsIgnoreCase("-1") && a.getName().equalsIgnoreCase("Classification")) { --- 203,208 ---- genAttributes.add(catext); where.add(new AttributeRow(catext)); ! if (a.getValue() instanceof Classification) { ! Classification c = (Classification)a.getValue(); if (c != null && !c.getId().equalsIgnoreCase("-1") && a.getName().equalsIgnoreCase("Classification")) { Index: ClassificationIdAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/ClassificationIdAttribute.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ClassificationIdAttribute.java 23 Jul 2007 13:57:39 -0000 1.6 --- ClassificationIdAttribute.java 10 Aug 2007 09:26:57 -0000 1.7 *************** *** 63,67 **** label = createLabel("Code"); component = Box.createHorizontalBox(); ! Classification c = (Classification)attribute.getThe2ndValue(); if (!c.getName().equalsIgnoreCase("Classification") && !c.getId().equalsIgnoreCase("-1")) { --- 63,67 ---- label = createLabel("Code"); component = Box.createHorizontalBox(); ! Classification c = (Classification)attribute.getValue(); if (!c.getName().equalsIgnoreCase("Classification") && !c.getId().equalsIgnoreCase("-1")) { *************** *** 189,193 **** if (editor == null) { component.remove(0); ! Classification c = (Classification)attribute.getThe2ndValue(); if (c != null && !c.getName().equalsIgnoreCase("Classification")) { --- 189,193 ---- if (editor == null) { component.remove(0); ! Classification c = (Classification)attribute.getValue(); if (c != null && !c.getName().equalsIgnoreCase("Classification")) { *************** *** 251,255 **** editor.removeKeyListener(this); editor = null; ! component.add(createValueLabel(attribute.getValue())); component.revalidate(); } --- 251,255 ---- editor.removeKeyListener(this); editor = null; ! component.add(createValueLabel(attribute.getThe2ndValue())); component.revalidate(); } |