EVL: How to change a property type [message #1721556] |
Thu, 28 January 2016 05:05  |
Eclipse User |
|
|
|
Hi,
I want to set the type (like primitive types) of a property of a class in a given UML model. I mean the statement like the following that here raises an error:
var p: new Property;
p.type().createInstance(new Integer);
The error message is:
Method 'createInstance' not found for: EClass [name=Property, instanceClassName=org.eclipse.uml2.uml.Property, ...
How can I resolve this problem?
Best regards,
Alireza
[Updated on: Mon, 01 February 2016 09:22] by Moderator
|
|
|
|
|
Re: EVL: How to change a property type [message #1721699 is a reply to message #1721657] |
Fri, 29 January 2016 05:02  |
Eclipse User |
|
|
|
Dear Dimitris,
Hi,
The problem was resolved for the stereotyped property too. It is required to load the PrimitiveTypes library just before the usage of the command DataType.all...
Best regards,
Alireza
[Updated on: Mon, 01 February 2016 09:21] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.12240 seconds