Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Ecore tools 2.0.3 Issue with generic ETypeParameter(In diagram editor cannot specify T extends SomeClass for type parameter T)
Ecore tools 2.0.3 Issue with generic ETypeParameter [message #1488854] Thu, 27 November 2014 00:11
Marcello Vitaletti is currently offline Marcello VitalettiFriend
Messages: 7
Registered: July 2009
Junior Member
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.
Previous Topic:Ecore Modeling Tools - missing create ecore Diagram
Next Topic:opposite reference in property view for bidirectional references
Goto Forum:

Current Time: Sat Sep 19 06:36:26 GMT 2020

Powered by FUDForum. Page generated in 0.01857 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top