svn commit: r16061 - trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-11-16 11:25:33-0800
New Revision: 16061

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java

Log:
Add constructor for use by PGML parser so that we can remove the FigPool specific hack there

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java?view=diff&rev=16061&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java&r1=16060&r2=16061
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/FigPool.java	2008-11-16 11:25:33-0800
@@ -30,6 +30,7 @@
 import java.util.Iterator;
 
 import org.argouml.model.Model;
+import org.argouml.uml.diagram.DiagramSettings;
 import org.argouml.uml.diagram.ui.FigEmptyRect;
 import org.argouml.uml.diagram.ui.FigNodeModelElement;
 import org.tigris.gef.presentation.Fig;
@@ -55,6 +56,19 @@
 
         setBounds(r);
     }
+    
+    /**
+     * Constructor used by PGML parser when loading.
+     * 
+     * @param owner ignored
+     * @param bounds bounding box rectangle
+     * @param settings diagram settings (unused)
+     */
+    public FigPool(@SuppressWarnings("unused") Object owner, 
+            Rectangle bounds, 
+            @SuppressWarnings("unused") DiagramSettings settings) {
+        this(bounds);
+    }
 
 
     /*
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.