Author: thn
Date: 2010-12-05 04:14:21-0800
New Revision: 18880

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java
   trunk/src/argouml-app/src/org/argouml/uml/StereotypeUtility.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/ActionAddStereotype.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java?view=diff&pathrev=18880&r1=18879&r2=18880
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java  
(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java  
2010-12-05 04:14:21-0800
@@ -130,9 +130,7 @@
                 Model.getCoreHelper().addStereotype(modelElement, stereotype);
             }
         }
-        for (Project p : ProjectManager.getManager().getOpenProjects()) {
-            p.updateRoots();
-        }
+        ProjectManager.getManager().updateRoots();
     }
 
     /*

Modified: trunk/src/argouml-app/src/org/argouml/uml/StereotypeUtility.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/StereotypeUtility.java?view=diff&pathrev=18880&r1=18879&r2=18880
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/StereotypeUtility.java    
(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/StereotypeUtility.java    
2010-12-05 04:14:21-0800
@@ -362,9 +362,7 @@
                 }
             }
         }
-        for (Project p : ProjectManager.getManager().getOpenProjects()) {
-            p.updateRoots();
-        }
+        ProjectManager.getManager().updateRoots();
     }
 
     /**

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to