svn commit: r19368 - trunk/src/argouml-app/src/org/argouml/notation/providers/NotationUtilityProviders.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2011-05-07 05:59:34-0700
New Revision: 19368

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

Log:
There can be multiple triggers

Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/NotationUtilityProviders.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/NotationUtilityProviders.java?view=diff&pathrev=19368&r1=19367&r2=19368
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/NotationUtilityProviders.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/NotationUtilityProviders.java	2011-05-07 05:59:34-0700
@@ -15,6 +15,7 @@
 
 import java.util.Collection;
 import java.util.Iterator;
+import java.util.List;
 
 import org.argouml.model.Model;
 import org.argouml.notation.NotationProvider;
@@ -38,8 +39,11 @@
             /* We are not interested in the name. */
         }
 
-        Object trigger = Model.getFacade().getTrigger(transition);
-        addListenersForEvent(np, trigger);
+        List triggers = Model.getFacade().getTriggers(transition);
+        
+        for (Object trigger : triggers) {
+            addListenersForEvent(np, trigger);
+        }
 
         Object effect = Model.getFacade().getEffect(transition);
         addListenersForAction(np, effect);

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

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.