[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview LinkAttribute.java,1.1,1.2 Gener
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2006-03-07 22:54:50
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32590/src/net/sourceforge/bprocessor/gui/attrview Modified Files: LinkAttribute.java GenericPanel.java Log Message: Implemented space as link attribute in surface panel Index: GenericPanel.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/GenericPanel.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** GenericPanel.java 28 Feb 2006 02:25:49 -0000 1.8 --- GenericPanel.java 7 Mar 2006 22:54:44 -0000 1.9 *************** *** 31,35 **** import net.sourceforge.bprocessor.model.Project; import net.sourceforge.bprocessor.model.Selection; - import net.sourceforge.bprocessor.model.Surface; /** --- 31,34 ---- *************** *** 140,144 **** //da.addMouseListener(this); where.add(new AttributeRow(da)); ! } else if (a.getValue() instanceof Surface) { // Handles the description field LinkAttribute la = new LinkAttribute(a); --- 139,143 ---- //da.addMouseListener(this); where.add(new AttributeRow(da)); ! } else if (a.getValue() instanceof Entity) { // Handles the description field LinkAttribute la = new LinkAttribute(a); Index: LinkAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/LinkAttribute.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LinkAttribute.java 28 Feb 2006 02:25:49 -0000 1.1 --- LinkAttribute.java 7 Mar 2006 22:54:44 -0000 1.2 *************** *** 22,26 **** import net.sourceforge.bprocessor.model.Attribute; ! import net.sourceforge.bprocessor.model.Surface; /** --- 22,26 ---- import net.sourceforge.bprocessor.model.Attribute; ! import net.sourceforge.bprocessor.model.Entity; /** *************** *** 139,143 **** private JComponent createValueLabel(Object value) { String s = ""; ! s = ((Surface)value).getName(); JLabel valueLabel = new JLabel(s); if (attribute.isEditable()) { --- 139,143 ---- private JComponent createValueLabel(Object value) { String s = ""; ! s = ((Entity)value).getName(); JLabel valueLabel = new JLabel(s); if (attribute.isEditable()) { |