svn commit: r15282 - branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: penyaskito
Date: 2008-07-15 08:26:51-0700
New Revision: 15282
Modified:
branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java
Log:
Removed unneeded panel attribute.
Modified: branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java?view=diff&rev=15282&p1=branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java&p2=branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java&r1=15281&r2=15282
==============================================================================
--- branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java (original)
+++ branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java 2008-07-15 08:26:51-0700
@@ -24,7 +24,6 @@
package org.argouml.core.propertypanels.panel;
-import java.awt.Dimension;
import java.io.InputStream;
import javax.swing.DefaultListCellRenderer;
@@ -151,8 +150,6 @@
private static UIFactory instance = new UIFactory();
- private JPanel panel;
-
public UIFactory() {
}
@@ -176,13 +173,13 @@
String filename = getXMLFileName(target);
LOG.info("[XMLPP] filename is:" + filename);
XMLPropertyPanelsData data = parseXML(filename);
- buildPanel(data, target);
- return panel;
+ JPanel p = buildPanel(data, target);
+ return p;
}
private JPanel buildPanel(XMLPropertyPanelsData data, Object target) {
- panel = new JPanel(new LabelledLayout());
+ JPanel panel = new JPanel(new LabelledLayout());
for (XMLPropertyPanelsDataRecord prop : data.getProperties()) {
if ("text".equals(prop.getType())) {