Author: penyaskito
Date: 2008-11-26 07:37:45-0800
New Revision: 16179
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java
Log:
There was a problem with the deprecation of DiagramFactoryInterface. We have to cascade the methods for asking for the older factories, and then call the older-older methods. We were missing the second part.
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java?view=diff&rev=16179&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java&r1=16178&r2=16179
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramFactory.java 2008-11-26 07:37:45-0800
@@ -28,6 +28,7 @@
import java.util.HashMap;
import java.util.Map;
+import org.apache.log4j.Logger;
import org.argouml.kernel.ProjectManager;
import org.argouml.model.ActivityDiagram;
import org.argouml.model.ClassDiagram;
@@ -55,6 +56,13 @@
*/
public final class DiagramFactory {
+
+ /**
+ * Logger.
+ */
+ private static final Logger LOG =
+ Logger.getLogger(DiagramFactory.class);
+
private final Map noStyleProperties = new HashMap();
/**
@@ -181,7 +189,7 @@
null, settings);
} else {
// TODO: Convert all to use standard factory registration
- diagram = createDiagram(diagramClasses.get(type), owner, null);
+ diagram = createDiagram(type, owner, (Object) null);
diagram.setDiagramSettings(settings);
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.