[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview AttributeView.java, 1.40, 1.41
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-17 17:27:48
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23724/src/net/sourceforge/bprocessor/gui/attrview Modified Files: AttributeView.java AttributePanel.java Log Message: removed unused code Index: AttributePanel.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/AttributePanel.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** AttributePanel.java 10 Apr 2006 11:54:38 -0000 1.8 --- AttributePanel.java 17 Oct 2007 17:27:44 -0000 1.9 *************** *** 27,31 **** import net.sourceforge.bprocessor.model.Vertex; - import org.apache.log4j.Logger; /** --- 27,30 ---- *************** *** 33,41 **** */ class AttributePanel extends JPanel { - /** Default serial-version-uid */ - private static final long serialVersionUID = 1L; - - /** The logger */ - private static Logger log = Logger.getLogger(AttributePanel.class); /** Current object */ --- 32,35 ---- Index: AttributeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/AttributeView.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** AttributeView.java 31 Jan 2007 21:01:12 -0000 1.40 --- AttributeView.java 17 Oct 2007 17:27:44 -0000 1.41 *************** *** 75,82 **** if (object instanceof Parametric) { this.add(BorderLayout.NORTH, new GenericPanel((Parametric)object)); - } else { - AttributePanel ap = new AttributePanel(); - ap.display(object); - this.add(BorderLayout.CENTER, ap); } } --- 75,78 ---- *************** *** 100,110 **** if (this.getComponents().length > 0) { Component jc = this.getComponent(0); ! if (jc instanceof AttributePanel) { ! AttributePanel ap = (AttributePanel)jc; ! Object current = ap.getCurrent(); ! if (object == current) { ! ap.display(current); ! } ! } else if (jc instanceof GenericPanel) { GenericPanel gp = (GenericPanel)jc; Object current = gp.getParametric(); --- 96,100 ---- if (this.getComponents().length > 0) { Component jc = this.getComponent(0); ! if (jc instanceof GenericPanel) { GenericPanel gp = (GenericPanel)jc; Object current = gp.getParametric(); |