svn commit: r12616 - trunk/src_new/org/argouml/persistence/PGMLStackParser.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2007-05-13 15:05:10-0700
New Revision: 12616

Modified:
   trunk/src_new/org/argouml/persistence/PGMLStackParser.java

Log:
Load a FigPool

Modified: trunk/src_new/org/argouml/persistence/PGMLStackParser.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/persistence/PGMLStackParser.java?view=diff&rev=12616&p1=trunk/src_new/org/argouml/persistence/PGMLStackParser.java&p2=trunk/src_new/org/argouml/persistence/PGMLStackParser.java&r1=12615&r2=12616
==============================================================================
--- trunk/src_new/org/argouml/persistence/PGMLStackParser.java	(original)
+++ trunk/src_new/org/argouml/persistence/PGMLStackParser.java	2007-05-13 15:05:10-0700
@@ -24,6 +24,7 @@
 
 package org.argouml.persistence;
 
+import java.awt.Rectangle;
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.HashMap;
@@ -34,6 +35,7 @@
 import java.util.StringTokenizer;
 
 import org.apache.log4j.Logger;
+import org.argouml.uml.diagram.activity.ui.FigPool;
 import org.argouml.uml.diagram.deployment.ui.FigMNodeInstance;
 import org.argouml.uml.diagram.deployment.ui.FigNodeInstance;
 import org.argouml.uml.diagram.ui.AttributesCompartmentContainer;
@@ -448,6 +450,24 @@
         public String getSourcePortFig() {
             return sourcePortFig;
         }
+    }
+
+    @Override
+    protected Fig constructFig(String className, String href, Rectangle bounds) throws SAXException {
+	
+	Fig f = null;
+	
+        if (className.equals(FigPool.class.getName())) {
+            f = new FigPool();
+        } else {
+            f = super.constructFig(className, href, bounds);
+        }
+        f.setBounds(bounds);
+        
         
+	return f;
     }
+    
+    
+    
 }
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.