Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Generate GMF diagram for an EMF model
Generate GMF diagram for an EMF model [message #98762] Tue, 30 January 2007 13:09 Go to next message
Eclipse UserFriend
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 #98804 is a reply to message #98762] Tue, 30 January 2007 13:56 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
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
Re: Generate GMF diagram for an EMF model [message #99527 is a reply to message #98804] Wed, 31 January 2007 12:42 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:ecore_diagram: how to show multiplicity ?
Next Topic:how to get active palette tool name?
Goto Forum:
  


Current Time: Wed Jul 17 01:40:09 GMT 2024

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

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

Back to the top