svn commit: r18879 - trunk/src/argouml-app/src/org/argouml/kernel/ProjectManager.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2010-12-05 04:12:00-0800
New Revision: 18879

Modified:
   trunk/src/argouml-app/src/org/argouml/kernel/ProjectManager.java

Log:
UML2 only: update the roots all open projects

Modified: trunk/src/argouml-app/src/org/argouml/kernel/ProjectManager.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/kernel/ProjectManager.java?view=diff&pathrev=18879&r1=18878&r2=18879
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/kernel/ProjectManager.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/kernel/ProjectManager.java	2010-12-05 04:12:00-0800
@@ -49,6 +49,9 @@
 import javax.swing.event.EventListenerList;
 
 import org.apache.log4j.Logger;
+import org.argouml.application.events.ArgoEventPump;
+import org.argouml.application.events.ArgoEventTypes;
+import org.argouml.application.events.ArgoStatusEvent;
 import org.argouml.cognitive.Designer;
 import org.argouml.i18n.Translator;
 import org.argouml.model.Model;
@@ -549,6 +552,21 @@
     }
 
     /**
+     * Updates the top level ModelElements for all projects.
+     */
+    public void updateRoots() {
+        if (Model.getFacade().getUmlVersion().charAt(0) == '1') {
+            // not needed in UML 1.x
+            return;
+        }
+        for (Project p : getOpenProjects()) {
+            p.updateRoots();
+        }
+        firePropertyChanged(OPEN_PROJECTS_PROPERTY,
+                new Project[] {currentProject}, new Project[] {currentProject});
+    }
+
+    /**
      * Called when the model subsystem creates a command.
      * We must add this to the UndoManager.
      *

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2687971

To unsubscribe from this discussion, e-mail: [[email protected]].
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.