[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview GenericPanel.java, 1.43, 1.44 C
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-18 13:47:42
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17054/src/net/sourceforge/bprocessor/gui/attrview Modified Files: GenericPanel.java Removed Files: ClassificationIdAttribute.java Log Message: got rid of some code Index: GenericPanel.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/GenericPanel.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** GenericPanel.java 18 Oct 2007 11:54:36 -0000 1.43 --- GenericPanel.java 18 Oct 2007 13:47:43 -0000 1.44 *************** *** 25,33 **** import javax.swing.border.TitledBorder; - import org.apache.log4j.Logger; - import net.sourceforge.bprocessor.model.Attribute; import net.sourceforge.bprocessor.model.Camera; - import net.sourceforge.bprocessor.model.Classification; import net.sourceforge.bprocessor.model.Description; import net.sourceforge.bprocessor.model.Entity; --- 25,30 ---- *************** *** 42,48 **** */ class GenericPanel extends JPanel implements MouseListener { - /** The logger */ - private static Logger log = Logger.getLogger(GenericPanel.class); - /** The current object shown */ private Parametric obj; --- 39,42 ---- *************** *** 185,188 **** --- 179,184 ---- } + + private void handleClassification(Attribute attribute, JComponent where) { ClassificationTextAttribute catext = new ClassificationTextAttribute(attribute); *************** *** 200,224 **** genAttributes.add(catext); where.add(new AttributeRow(catext)); - if (attribute.getValue() instanceof Classification) { - Classification c = (Classification)attribute.getValue(); - if (c != null && !c.getId().equalsIgnoreCase("-1") && - attribute.getName().equalsIgnoreCase("Classification")) { - // Handles the id part of classification - ClassificationIdAttribute caid = new ClassificationIdAttribute(attribute); - caid.addClassificationAttributeListener(new AttributeListener() { - public void valueChanged(Attribute a) { - obj.setAttributes(attributes); - if (obj instanceof Entity) { - simpleUpdate = true; - ((Entity)obj).changed(); - } else if (obj instanceof Camera) { - Project.getInstance().changed((Camera)obj); - } - } - }); - genAttributes.add(caid); - where.add(new AttributeRow(caid)); - } - } } --- 196,199 ---- --- ClassificationIdAttribute.java DELETED --- |