Generate GMF diagram for an EMF model [message #98762] |
Tue, 30 January 2007 08:09  |
Eclipse User |
|
|
|
Originally posted by: jiri_semecky.cz.ibm.com
Hi everybody,
I'm trying to figure out how can I generate a new GMF diagram for an
existing EMF model. This seems to me to be a common editor requierement
which must have been solved for many times, but I can't find any solution.
The canonical layout might be used for arrangment of the nodes.
Is there a straight-forward sollution or do I need to iterate over the
model?
Thanks,
Jirka
|
|
|
|
Re: Generate GMF diagram for an EMF model [message #99527 is a reply to message #98804] |
Wed, 31 January 2007 07:42  |
Eclipse User |
|
|
|
Originally posted by: jiri_semecky.cz.ibm.com
Thank you, I missed that.
I mean instantiation of an ecore model (not the ecore model itself), but
it actually works exactly the way you suggested ("initialize
whatever_diagram diagram file" on the context menu of the model).
However, in the initialization, the nodes are converted fine, but the
transitions are not generated. Does anybody has an explenation?
--Jirka
> Do you mean for a diagram *of* an ecore model *itself*? In this case you
> can imply right-click on an ecore model and select "initialize
> ecore_diagram diagram file". Now a diagram for instantiations of an
> ecore model (e.g. drawing :"mymodel.library" in library.ecore) that
> isn't something one could automatically derive...
>
> On 2007-01-30 08:09:31 -0500, Jiri Semecky <jiri_semecky@cz.ibm.com> said:
>
>> Hi everybody,
>>
>> I'm trying to figure out how can I generate a new GMF diagram for an
>> existing EMF model. This seems to me to be a common editor
>> requierement which must have been solved for many times, but I can't
>> find any solution.
>>
>> The canonical layout might be used for arrangment of the nodes.
>>
>> Is there a straight-forward sollution or do I need to iterate over the
>> model?
>>
>> Thanks,
>> Jirka
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04321 seconds