|Ecore tools 2.0.3 Issue with generic ETypeParameter [message #1488854]
||Thu, 27 November 2014 00:11
| Marcello Vitaletti
Registered: July 2009
In the traditional ecore model editor, one can define a class MyClass<T extends SomeClass> by specifying a bounding classifier (SomeClass) for the type parameter. |
Creating a representation file for an existing .ecore model with such use of generics seem to perfectly understand this construct. By selecting the type parameter of the class, and selecting the Semantic section of the properties one reads "T extends SomeClass" on the first line and "T" for the name of the parameter.
However, I could not find a way to reproduce this construct using the latest (2.0.3) ecore diagram editor.
The overview documentation shows a more complex example using generics with a <<bind>> constraint. However, I found no reference on how Constraints and Constraint Assignments could be used in this case, that is for setting the bound "extends SomeClass" on a class type parameter.
Thanks for your support.
Powered by FUDForum
. Page generated in 0.01794 seconds