Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to synchronise gmfgraph/gmfmap/gmfgen files?
How to synchronise gmfgraph/gmfmap/gmfgen files? [message #505008] Thu, 24 December 2009 05:56 Go to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
Hi, a GMF newbie here (though not new to Eclipse) so apologies if the
following question has been answered elsewhere.

I've been playing around with GMF and have created the following files
(and generated code) in order to create a simple diagram editor:

mymodel.ecore
mymodel.genmodel
mymodel.gmfgraph
mymodel.gmftool
mymodel.gmfmap
mymodel.gmfgen

Everything works fine. But now I want to change the figures and nodes as
defined in the .gmfgraph file. It seems that if I edit the .gmfgraph
file I have to then manually recreate the .gmfmap and .gmfgen files each
time (and thus the diagram code) as these do not "refresh" and reflect
the changes in the .gmfgraph file. What if I have made manual changes to
the original .gmfmap and .gmfgen files? Are these changes lost now? Or
am I missing something?

Thanks,

Phil
Re: How to synchronise gmfgraph/gmfmap/gmfgen files? [message #506250 is a reply to message #505008] Wed, 06 January 2010 17:10 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 24/12/2009 10:49, Phillipus wrote:
> Hi, a GMF newbie here (though not new to Eclipse) so apologies if the
> following question has been answered elsewhere.
>
> I've been playing around with GMF and have created the following files
> (and generated code) in order to create a simple diagram editor:
>
> mymodel.ecore
> mymodel.genmodel
> mymodel.gmfgraph
> mymodel.gmftool
> mymodel.gmfmap
> mymodel.gmfgen
>
> Everything works fine. But now I want to change the figures and nodes as
> defined in the .gmfgraph file. It seems that if I edit the .gmfgraph
> file I have to then manually recreate the .gmfmap and .gmfgen files each
> time (and thus the diagram code) as these do not "refresh" and reflect
> the changes in the .gmfgraph file. What if I have made manual changes to
> the original .gmfmap and .gmfgen files? Are these changes lost now? Or
> am I missing something?
>
> Thanks,
>
> Phil

It seems a simple question...and takers?

Thanks!

Phil
Re: How to synchronise gmfgraph/gmfmap/gmfgen files? [message #506343 is a reply to message #506250] Thu, 07 January 2010 08:08 Go to previous messageGo to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi Phil,

open the gmfmap and edit the grph right threre (expand the mapping until
the resource set loads and show the gmfgraph in the list). The gmfgen
can be regenerated over an existing one. The change should be merged.

Sven

Phillipus schrieb:
> On 24/12/2009 10:49, Phillipus wrote:
>> Hi, a GMF newbie here (though not new to Eclipse) so apologies if the
>> following question has been answered elsewhere.
>>
>> I've been playing around with GMF and have created the following files
>> (and generated code) in order to create a simple diagram editor:
>>
>> mymodel.ecore
>> mymodel.genmodel
>> mymodel.gmfgraph
>> mymodel.gmftool
>> mymodel.gmfmap
>> mymodel.gmfgen
>>
>> Everything works fine. But now I want to change the figures and nodes as
>> defined in the .gmfgraph file. It seems that if I edit the .gmfgraph
>> file I have to then manually recreate the .gmfmap and .gmfgen files each
>> time (and thus the diagram code) as these do not "refresh" and reflect
>> the changes in the .gmfgraph file. What if I have made manual changes to
>> the original .gmfmap and .gmfgen files? Are these changes lost now? Or
>> am I missing something?
>>
>> Thanks,
>>
>> Phil
>
> It seems a simple question...and takers?
>
> Thanks!
>
> Phil
Re: How to synchronise gmfgraph/gmfmap/gmfgen files? [message #506516 is a reply to message #506343] Thu, 07 January 2010 20:00 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 07/01/2010 08:08, Sven Krause wrote:
> Hi Phil,
>
> open the gmfmap and edit the grph right threre (expand the mapping until
> the resource set loads and show the gmfgraph in the list). The gmfgen
> can be regenerated over an existing one. The change should be merged.
>
> Sven
>
> Phillipus schrieb:
>> On 24/12/2009 10:49, Phillipus wrote:
>>> Hi, a GMF newbie here (though not new to Eclipse) so apologies if the
>>> following question has been answered elsewhere.
>>>
>>> I've been playing around with GMF and have created the following files
>>> (and generated code) in order to create a simple diagram editor:
>>>
>>> mymodel.ecore
>>> mymodel.genmodel
>>> mymodel.gmfgraph
>>> mymodel.gmftool
>>> mymodel.gmfmap
>>> mymodel.gmfgen
>>>
>>> Everything works fine. But now I want to change the figures and nodes as
>>> defined in the .gmfgraph file. It seems that if I edit the .gmfgraph
>>> file I have to then manually recreate the .gmfmap and .gmfgen files each
>>> time (and thus the diagram code) as these do not "refresh" and reflect
>>> the changes in the .gmfgraph file. What if I have made manual changes to
>>> the original .gmfmap and .gmfgen files? Are these changes lost now? Or
>>> am I missing something?
>>>
>>> Thanks,
>>>
>>> Phil
>>
>> It seems a simple question...and takers?
>>
>> Thanks!
>>
>> Phil

Thanks for that Sven! I shall try it.

Phil
Previous Topic:Emf compare / merge
Next Topic:export of dashed node in graphics file
Goto Forum:
  


Current Time: Tue Apr 23 15:56:11 GMT 2024

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

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

Back to the top