svn commit: r17128 - trunk/src/argouml-app/src/org/argouml/notation/providers/OperationNotation.java

Thomas Neustupny <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2009-04-24 03:51:40-0700
New Revision: 17128

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

Log:
UML2: turn off tagged values for now (added TODO)

Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/OperationNotation.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/OperationNotation.java?view=diff&pathrev=17128&r1=17127&r2=17128
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/OperationNotation.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/OperationNotation.java	2009-04-24 03:51:40-0700
@@ -72,10 +72,12 @@
                     addElementListener(listener, type);
                 }
             }
-            // We also show tagged values
-            for (Object uml : Model.getFacade()
-                    .getTaggedValuesCollection(modelElement)) {
-                addElementListener(listener, uml);
+            // We also show tagged values for UML 1
+            // TODO: what to do for UML2 here?
+            if( Model.getFacade().getUmlVersion().charAt(0) == '1') {
+                for (Object uml : Model.getFacade() .getTaggedValuesCollection(modelElement)) {
+                    addElementListener(listener, uml);     
+                }   
             }
         }
     }

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

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.