Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How is the .gmfgen model generated?
How is the .gmfgen model generated? [message #162866] Tue, 27 November 2007 17:00 Go to next message
Eclipse UserFriend
Originally posted by: andreas.behnke1.gmx.de

Hi all,

I have several nodes which provide sub diagrams (partitioning) on double
click. Every time the gmfgen model is recreated, all information placed
in the "OpenDiagramBehaviour" element is lost, which is quite annoying
and error-prone. I have to set "Diagram Kind", "Editor ID" and "Edit
Policy Class Name" over and over again...

So I would like to fix bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203768 but don't know
where to look for the generation of the .gmfgen model. How is the M2M
transformation implemented, could someone please give me a hint where to
start?

Thanks in advance,
Andreas
Re: How is the .gmfgen model generated? [message #165444 is a reply to message #162866] Fri, 14 December 2007 14:37 Go to previous message
Jaap Reitsma is currently offline Jaap ReitsmaFriend
Messages: 69
Registered: July 2009
Member
Hi Andreas,

I have two subdiagrams. On noticing that the OpenDiagramEditpolicy gets
overwritten, I modified the name of the Edit Policy Class Name property into
OpenXXXDiagramEditpolicy. Regenerating the gmfgen from the gmfmap does not
erase these fields. So the solution Axel describes works for me too. This is
also described in the wiki article
http://wiki.eclipse.org/Diagram_Partitioning#Implementation_ steps:

Nevertheless, I have the same question: How is the transformation done and
more important: Which sections or fields are overwritten and which are left
as is and on what conditions? I noticed for instance that the Gen Plugin ->
Required Plugin Identifiers field is overwritten, puzzling and quite
inconvenient.

Kind regards,

Jaap

"Andreas Behnke" <andreas.behnke1@gmx.de> wrote in message
news:fihieo$2fq$1@build.eclipse.org...
> Hi all,
>
> I have several nodes which provide sub diagrams (partitioning) on double
> click. Every time the gmfgen model is recreated, all information placed
> in the "OpenDiagramBehaviour" element is lost, which is quite annoying and
> error-prone. I have to set "Diagram Kind", "Editor ID" and "Edit Policy
> Class Name" over and over again...
>
> So I would like to fix bug
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203768 but don't know where
> to look for the generation of the .gmfgen model. How is the M2M
> transformation implemented, could someone please give me a hint where to
> start?
>
> Thanks in advance,
> Andreas
Previous Topic:Customizing Note
Next Topic:2 editors probblem
Goto Forum:
  


Current Time: Thu Apr 25 15:25:21 GMT 2024

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

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

Back to the top