svn commit: r18869 - 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-03 01:12:52-0800
New Revision: 18869

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

Log:
UML2 only: update the roots in projects when (un)applying stereotypes.

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=18869&r1=18868&r2=18869
==============================================================================
--- 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-03 01:12:52-0800
@@ -44,6 +44,8 @@
 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;
@@ -97,6 +99,9 @@
             // Add stereotypes submenu
             if (newStereo != null) {
                 Model.getCoreHelper().addStereotype(target, newStereo);
+                for (Project p : ProjectManager.getManager().getOpenProjects()) {
+                    p.updateRoots();
+                }
             }
         }
     }

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

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.