svn commit: r13038 - trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-07-10 11:58:00-0700
New Revision: 13038

Modified:
   trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java

Log:
Issue 4789 - use our own project instead of getting it from the ProjectManager singleton

Modified: trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java?view=diff&rev=13038&p1=trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java&p2=trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java&r1=13037&r2=13038
==============================================================================
--- trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java	(original)
+++ trunk/src_new/org/argouml/uml/diagram/UMLMutableGraphSupport.java	2007-07-10 11:58:00-0700
@@ -34,7 +34,6 @@
 
 import org.apache.log4j.Logger;
 import org.argouml.kernel.Project;
-import org.argouml.kernel.ProjectManager;
 import org.argouml.model.DiDiagram;
 import org.argouml.model.Model;
 import org.argouml.model.UmlException;
@@ -238,8 +237,7 @@
         Dictionary args = mode.getArgs();
         Object style = args.get("aggregation"); //MAggregationKind
         Boolean unidirectional = (Boolean) args.get("unidirectional");
-        Object model =
-            ProjectManager.getManager().getCurrentProject().getModel();
+        Object model = getProject().getModel();
 
         // Create the UML connection of the given type between the
         // given model elements.
@@ -534,7 +532,7 @@
      * @param dd
      */
     void setDiDiagram(DiDiagram dd) {
-        this.diDiagram = dd;
+        diDiagram = dd;
     }
 
     /**
@@ -562,7 +560,7 @@
      * @param p the project
      */
     public void setProject(Project p) {
-	this.project = p;
+	project = p;
     }
     
     /**
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.