svn commit: r19271 - trunk/src: argouml-core-model-euml/src/org/argouml/model/euml argouml-core-model/src/org/argouml/model
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2011-04-23 12:42:26-0700
New Revision: 19271
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
trunk/src/argouml-core-model/src/org/argouml/model/MetaTypes.java
Log:
STARTED - task 6236: Unable to create EnumerationLiteral
http://argouml.tigris.org/issues/show_bug.cgi?id=6236
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java?view=diff&pathrev=19271&r1=19270&r2=19271
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java 2011-04-23 12:42:26-0700
@@ -393,6 +393,8 @@
o = modelImpl.getCoreFactory().createOperation();
} else if (elementType == metaTypes.getEnumeration()) {
o = modelImpl.getCoreFactory().createEnumeration();
+ } else if (elementType == metaTypes.getEnumerationLiteral()) {
+ o = modelImpl.getCoreFactory().createEnumerationLiteral();
} else if (elementType == metaTypes.getStereotype()) {
o = modelImpl.getExtensionMechanismsFactory().createStereotype();
} else if (elementType == metaTypes.getAttribute()) {
@@ -418,7 +420,7 @@
}
if (!(o instanceof EObject)) {
throw new IllegalArgumentException(
- "Attempted to create unsupported model element type: " //$NON-NLS-1$
+ "Attempted to create unsupported element type: " //$NON-NLS-1$
+ elementType);
}
return o;
Modified: trunk/src/argouml-core-model/src/org/argouml/model/MetaTypes.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/MetaTypes.java?view=diff&pathrev=19271&r1=19270&r2=19271
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/MetaTypes.java (original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/MetaTypes.java 2011-04-23 12:42:26-0700
@@ -280,7 +280,7 @@
Object getEnumeration();
/**
- * @return Returns the Enumeration.
+ * @return Returns the EnumerationLiteral.
*/
Object getEnumerationLiteral();
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2723463
To unsubscribe from this discussion, e-mail: [[email protected]].