How is the .gmfgen model generated? [message #162866] |
Tue, 27 November 2007 12:00  |
Eclipse User |
|
|
|
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 09:37  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02424 seconds