svn commit: r17058 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Thomas Neustupny <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2009-04-06 12:15:34-0700
New Revision: 17058
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log:
a first implementation of the getTemplateParameters method
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=17058&r1=17057&r2=17058
==============================================================================
--- 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-04-06 12:15:34-0700
@@ -115,6 +115,7 @@
import org.eclipse.uml2.uml.StructuralFeature;
import org.eclipse.uml2.uml.TemplateBinding;
import org.eclipse.uml2.uml.TemplateParameter;
+import org.eclipse.uml2.uml.TemplateableElement;
import org.eclipse.uml2.uml.TimeEvent;
import org.eclipse.uml2.uml.Transition;
import org.eclipse.uml2.uml.Trigger;
@@ -318,7 +319,7 @@
return list;
}
throw new IllegalArgumentException(
- "handle must be instance of Stereotype");
+ "handle must be instance of Stereotype"); //$NON-NLS-1$
}
public Collection getBases(Object handle) {
@@ -1321,7 +1322,11 @@
}
public List getTemplateParameters(Object handle) {
- throw new NotYetImplementedException();
+ if (handle instanceof TemplateableElement) {
+ return ((TemplateableElement) handle).getTemplateBindings();
+ }
+ throw new IllegalArgumentException(
+ "handle must be instance of TemplateableElement"); //$NON-NLS-1$
}
public String getTipString(Object modelElement) {
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1564376
To unsubscribe from this discussion, e-mail: [[email protected]].