svn commit: r17531 - trunk/src/argouml-app/src/org/argouml/ui/explorer/rules/GoNamespaceToOwnedElements.java

Thomas Neustupny <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2009-11-23 09:49:14-0800
New Revision: 17531

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/explorer/rules/GoNamespaceToOwnedElements.java

Log:
suppressing display of ProfileApplication instances in explorer

Modified: trunk/src/argouml-app/src/org/argouml/ui/explorer/rules/GoNamespaceToOwnedElements.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/explorer/rules/GoNamespaceToOwnedElements.java?view=diff&pathrev=17531&r1=17530&r2=17531
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/explorer/rules/GoNamespaceToOwnedElements.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/explorer/rules/GoNamespaceToOwnedElements.java	2009-11-23 09:49:14-0800
@@ -79,12 +79,17 @@
                 }
             }
             if (Model.getFacade().getUmlVersion().charAt(0) == '2') {
+                // in UML2, some elements are not to be shown
+                if (Model.getFacade().isAProfileApplication(o)) {
+                    // don't show a profile application
+                    continue;
+                }
                 if (Model.getFacade().isAProfile(parent)) {
                     if (Model.getFacade().isAElementImport(o)) {
-                        // in UML2, don't show element imports in profiles
+                        // don't show element imports in profiles
                         continue;
                     } else if (Model.getFacade().isAExtension(o)) {
-                        // in UML2, don't show extensions in profiles
+                        // don't show extensions in profiles
                         continue;
                     }
                 }
@@ -92,7 +97,7 @@
                         //&& Model.getFacade().isAProperty(o)
                         && Model.getFacade().getName(o) != null
                         && Model.getFacade().getName(o).startsWith("base_")) {
-                    // in UML2, don't show base_... properties in stereotypes
+                    // don't show base_... properties in stereotypes
                     continue;
                 }
             }

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

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.