svn commit: r18884 - trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/ActionSetModelElementStereotype.java

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

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/ActionSetModelElementStereotype.java

Log:
UML2 only: update the roots in ALL open projects when (un)applying stereotypes (use new method).

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/ActionSetModelElementStereotype.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/ActionSetModelElementStereotype.java?view=diff&pathrev=18884&r1=18883&r2=18884
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/ActionSetModelElementStereotype.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/ActionSetModelElementStereotype.java	2010-12-05 04:17:12-0800
@@ -44,11 +44,10 @@
 import javax.swing.Action;
 
 import org.argouml.i18n.Translator;
-import org.argouml.kernel.Project;
 import org.argouml.kernel.ProjectManager;
 import org.argouml.model.Model;
-import org.argouml.uml.ui.UMLComboBox2;
 import org.argouml.ui.UndoableAction;
+import org.argouml.uml.ui.UMLComboBox2;
 
 /**
  * @since Oct 10, 2002
@@ -99,9 +98,7 @@
             // Add stereotypes submenu
             if (newStereo != null) {
                 Model.getCoreHelper().addStereotype(target, newStereo);
-                for (Project p : ProjectManager.getManager().getOpenProjects()) {
-                    p.updateRoots();
-                }
+                ProjectManager.getManager().updateRoots();
             }
         }
     }

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

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.