|
|
|
|
|
Re: Create EMF model [message #1139025 is a reply to message #1138780] |
Tue, 15 October 2013 13:39 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Mahsa,
Comments below.
On 15/10/2013 12:17 PM, Mahsa P wrote:
> Ed Merks,
>> Is the model instance stored in the *.test resource?
> yes, and *.test_diagram is graphical form for *.test. in fact, "test"
> is name of my ecore file and when i run created GMF editor for this
> meta-model,"test Diagram" is added to list of project types and i can
> create instance from "test Diagram" that this instance has "*.test"
> type. "*.test_diagram" is form of graphical for "*.test". these two
> file stored in runtime projects but when I import these to my
> workspace, they are similar to XML type.
>
> Donat Mueller
>
>> Your GMF created instance is an instance of your custom meta model
>> and can therefore not be converted to EMF.
> I think Ed Merks say true about it. this instance is one instance from
> an ecore model and it's structure is similar to EMF model but i want
> this instance introduce in EMF model type.
If I understand correctly, you just need to load the *.test file as a
resource it and it contain your EMF model.
>> You can use xpand to create other artefacts from your instance such
>> as an EMF model.
> if i understand correctly, you say i can create this instance in "EMF
> model" type instead of "diagram file". I right click on
> "default.test_diagram" and select open with> other. but there isn't
> "EMF model" type in open list.
I don't know if you chose to store your model in the diagram file or in
a separate file. In either case, you can load that separate
file/resource or the diagram file/resource and it will contain your model.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Re: Create EMF model [message #1140007 is a reply to message #1139043] |
Wed, 16 October 2013 04:43 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Mahsa,
Comments below.
On 15/10/2013 3:51 PM, Mahsa P wrote:
> Ed Merks,
>>>> Your GMF created instance is an instance of your custom meta model
>>>> and can therefore not be converted to EMF.
>>> I think Ed Merks say true about it. this instance is one instance
>>> from an ecore model and it's structure is similar to EMF model but i
>>> want this instance introduce in EMF model type.
>> If I understand correctly, you just need to load the *.test file as a
>> resource it and it contain your EMF model.
> yes, I want load the *.test as EMF model.
EMF's generated editor shows how to do this. The introductory overview
shows how too. What have you tried?
> i need this EMF model for model transformation by ETL so exactly "EMF
> MODEL" type is important for me.
But, I have no idea what you mean by EMF MODEL type. If you have
Epsilon questions, ask on their newsgroup.
>>> if i understand correctly, you say i can create this instance in
>>> "EMF model" type instead of "diagram file". I right click on
>>> "default.test_diagram" and select open with> other. but there isn't
>>> "EMF model" type in open list.
>> I don't know if you chose to store your model in the diagram file or
>> in a separate file. In either case, you can load that separate
>> file/resource or the diagram file/resource and it will contain your
>> model.
> how do i load another type?
I don't know what you mean by that. Again is this question Epsilon
specific?
> do i load separate type in runtime eclipse? if it's possible, explain
> more about it please. thanks
If you invoke Generate Test Code for you model, there is a generated
XyzExample.java in the *.tests project that shows basic things like how
to load and save resources in a stand alone application.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04562 seconds