EAnnotation#getContents() and Ecore editor [message #1410301] |
Wed, 20 August 2014 07:13  |
Eclipse User |
|
|
|
Hi,
I found in several places that Ed recommends using getContents and getReferences methods from EAnnotation if something more sophisticated than string to string map is needed. And this is exactly what I need. I've got a Configuration EClass with plenty of subclasses to allow strong-typed model decoration.
While I can add references using Property panel, the problem occurs with adding Configuration instances to the contents attribute.
I would like to be able to create a new dynamic instance of Configuration EClass as a child of EAnnotation. Right now the existence of EAnnotation#contents feature is hidden in editor unless such an instance is already there.
Any ideas?
In my opinion would be nice to have "Create dynamic instance" as a child of EAnnotation already in Sample Ecore Model Editor, but maybe I am wrong and do not know something. I could also add this kind of extension in my plug-ins but I do not know if this is doable without extending the editor itself.
Cheers
Paweł
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04318 seconds