[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview LinkAttribute.java, 1.12, 1.13
Status: Pre-Alpha
Brought to you by:
henryml
From: Nikolaj B. <nbr...@us...> - 2006-09-17 22:02:22
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28016/src/net/sourceforge/bprocessor/gui/attrview Modified Files: LinkAttribute.java Log Message: Link attribute now also works when a Project is given as argument Index: LinkAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/LinkAttribute.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** LinkAttribute.java 28 Aug 2006 05:54:04 -0000 1.12 --- LinkAttribute.java 17 Sep 2006 22:02:20 -0000 1.13 *************** *** 175,188 **** if (value instanceof Entity) { s = ((Entity)value).getName(); ! valueLabel = new JLabel(s); ! } else { ! if (value instanceof String) { ! s = (String)value; ! } else if (value instanceof Double) { ! double rounded = round(((Double) value).doubleValue()); ! s = Double.toString(rounded); ! } ! valueLabel = new JLabel(s); } if (attribute.isEditable()) { valueLabel.setFont(AttributeView.FONT_PLAIN); --- 175,188 ---- if (value instanceof Entity) { s = ((Entity)value).getName(); ! } else if (value instanceof Project) { ! s = ((Project)value).getName(); ! } else if (value instanceof String) { ! s = (String)value; ! } else if (value instanceof Double) { ! double rounded = round(((Double) value).doubleValue()); ! s = Double.toString(rounded); } + valueLabel = new JLabel(s); + if (attribute.isEditable()) { valueLabel.setFont(AttributeView.FONT_PLAIN); |