GenCustomPreferencePage [message #174930] |
Fri, 29 February 2008 04:32  |
Eclipse User |
|
|
|
Hi,
I tried to add a custom preference page (GenCustomPreferencePage) to my
genmodel. After regeneration of the genmodel, my custom page was lost. Is
this a known problem?
In the meantime, I will register my custom preference page through a
extension, but it would be quite easier, if it could be done within the
genmodel!
Best Regards
André
|
|
|
Re: GenCustomPreferencePage [message #175224 is a reply to message #174930] |
Mon, 03 March 2008 14:09   |
Eclipse User |
|
|
|
Originally posted by: jan.koehnlein.web.de
Hi André :-)
unfortunately, GMF overwrites a lot of things in the gmfgen-model, and
you have to find out which ones by try and error. You can find some hints in
http://wiki.eclipse.org/GMF_GenModel_Hints
You could also apply your changes using a model-to-model transformation
after generating the gmfgen model but before generating the code. AFAIK,
you'd have to do that manually, as GMF doesn't provide a hook.
I would really appreciate to have an explicit and extensible
transformation from the gmfmap model to the gmfgen model. The current
transparent way looks like magic and is really hard to cope with.
Regards
Jan
André Lahs wrote:
> Hi,
>
> I tried to add a custom preference page (GenCustomPreferencePage) to my
> genmodel. After regeneration of the genmodel, my custom page was lost.
> Is this a known problem?
>
> In the meantime, I will register my custom preference page through a
> extension, but it would be quite easier, if it could be done within the
> genmodel!
>
> Best Regards
> André
>
|
|
|
Re: GenCustomPreferencePage [message #176501 is a reply to message #175224] |
Sun, 09 March 2008 09:59  |
Eclipse User |
|
|
|
Hi Jan,
first of all, sorry for the late reply and thank you very much for the
link. It might help me to prevent other pitfalls.
The post-transformation is an opportunity to customizing the gmfgen model
after every recreation, but this is of course no general solution.
From my point of view, the refactoring of the current gmfgen creation
transformation is the better solution and I can imaging to contribute on
this. Maybe we could talk about it, if you are interested.
Best Regards
André
|
|
|
Powered by
FUDForum. Page generated in 0.04939 seconds