EGL: Setting-up an ecore model features [message #1719340] |
Thu, 07 January 2016 05:53  |
Eclipse User |
|
|
|
Hi,
I want to read some features from an ecore model file and then generate an output based on the captured values. But launching the EGL file, here FOO, is encountered the following problems:
An internal error occurred during: "Launching Foo".
These errors need to be fixed before the model can be serialized.
Model: Feature Model.name must be set.
Model: Feature Model. ... must be set.
...
Of course, I have generated the ecore metamodel from the Xtext. And, I want to read the features of a model which conforms to the mentioned ecore metamodel.
How can I resolve the mentioned problems?
Kind regards,
Alireza
[Updated on: Wed, 13 January 2016 16:26] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: EGL: get access to an ecore model objects' properties [message #1719577 is a reply to message #1719524] |
Sat, 09 January 2016 02:38   |
Eclipse User |
|
|
|
Hi Dimitris,
I have another problem with working on an ecore model. The statement,
var m = Model.allInstances();
returns all of the given model elements as a single serialized sequence. So, I cannot explore the model classifiers at all. I want to be able to write statements similar to,
m.eClass.select(c | c.name = "Greeting");
to filter-out special classifiers and get access to their properties.
As the following screenshot displays, when I open the ecore model file in the Exeed Editor, I don't see any relationships between the classifiers of model in the properties view, I mean any classifier hierarchy like owned elements, owner properties to name a few, as we can see in a UML model. Of course, this relationships are reflected near each object in the form of:
For example, there is not any property regarding the Model object!
Exeed Editor:

Is there any way or trick to load an ecore model still keep its model structure (not serialized) in an egl file to get access the objects' properties?
Thanks a lot.
Kind regards,
Alireza
[Updated on: Tue, 12 January 2016 09:41] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08268 seconds