svn commit: r17145 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java

Linus Tolke <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2009-05-25 12:55:54-0700
New Revision: 17145

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java

Log:
Attempt at fixing getElementImports().

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&pathrev=17145&r1=17144&r2=17145
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java	2009-05-25 12:55:54-0700
@@ -596,12 +596,11 @@
         return ((Transition) handle).getEffect();
     }
 
-    public Collection getElementImports(Object handle) {
-        if (!(handle instanceof org.eclipse.uml2.uml.Package)) {
+    public Collection<ElementImport> getElementImports(Object handle) {
+        if (!(handle instanceof Namespace)) {
             throw new IllegalArgumentException();
         }
-        return Collections.EMPTY_LIST;
-//      throw new NotYetImplementedException();
+        return ((Namespace) handle).getElementImports();
     }
 
     public Collection getElementImports2(Object handle) {

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

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.