Author: bobtarling
Date: 2011-05-13 15:56:51-0700
New Revision: 19424

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

Log:
ComponentInstance is not in UML2

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=19424&r1=19423&r2=19424
==============================================================================
--- 
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
    2011-05-13 15:56:51-0700
@@ -1106,11 +1106,9 @@
         } else if (handle instanceof EPackage) {
             return ((EPackage) handle).getName();
         } else {
-            // TODO: Some elements such as Generalization are
-            // no longer named.  For a transitional period we'll
-            // return a String so debug can continue, but the
-            // calling code should probably be fixed. - tfm 20070607
-            return getUMLClassName(handle) + " <not nameable>";
+            throw new IllegalArgumentException(
+                    "The element " + handle //$NON-NLS-1$
+                    + " is not named");  //$NON-NLS-1$
         }
     }

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to