svn commit: r19369 - trunk/src/argouml-app/src/org/argouml/notation/providers/StateBodyNotation.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2011-05-07 06:00:13-0700
New Revision: 19369

Modified:
   trunk/src/argouml-app/src/org/argouml/notation/providers/StateBodyNotation.java

Log:
UML2 doesn't have internal transitions

Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/StateBodyNotation.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/StateBodyNotation.java?view=diff&pathrev=19369&r1=19368&r2=19369
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/StateBodyNotation.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/StateBodyNotation.java	2011-05-07 06:00:13-0700
@@ -66,10 +66,12 @@
     public void initialiseListener(Object modelElement) {
         addElementListener(modelElement);
         // register for internal transitions:
-        Iterator it =
-            Model.getFacade().getInternalTransitions(modelElement).iterator();
-        while (it.hasNext()) {
-            NotationUtilityProviders.addListenersForTransition(this, it.next());
+        if (Model.getFacade().getUmlVersion().startsWith("1")) {
+            Iterator it =
+                Model.getFacade().getInternalTransitions(modelElement).iterator();
+            while (it.hasNext()) {
+                NotationUtilityProviders.addListenersForTransition(this, it.next());
+            }
         }
         // register for the doActivity etc.
         Object doActivity = Model.getFacade().getDoActivity(modelElement);

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

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.