svn commit: r17043 - trunk/src/argouml-app/src/org/argouml/uml/ui/TabTaggedValues.java

Alexander Lepekhine <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: lepekhine
Date: 2009-04-05 07:35:13-0700
New Revision: 17043

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/TabTaggedValues.java

Log:
Enabled TaggedValues pane for TemplateParameter

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/TabTaggedValues.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/TabTaggedValues.java?view=diff&pathrev=17043&r1=17042&r2=17043
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/TabTaggedValues.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/TabTaggedValues.java	2009-04-05 07:35:13-0700
@@ -163,6 +163,11 @@
 
         Object t = (theTarget instanceof Fig)
                     ? ((Fig) theTarget).getOwner() : theTarget;
+        if ((Model.getFacade().isATemplateParameter(t))) {
+            target = Model.getFacade().getParameter(t);
+            shouldBeEnabled = true;
+            return;
+        }
         if (!(Model.getFacade().isAModelElement(t))) {
             target = null;
             shouldBeEnabled = false;
@@ -237,6 +242,10 @@
     public boolean shouldBeEnabled(Object theTarget) {
         Object t = (theTarget instanceof Fig)
             ? ((Fig) theTarget).getOwner() : theTarget;
+        if ((Model.getFacade().isATemplateParameter(t))) {
+            shouldBeEnabled = true;
+            return shouldBeEnabled;
+        }
         if (!(Model.getFacade().isAModelElement(t))) {
             shouldBeEnabled = false;
             return shouldBeEnabled;

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

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.