Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » GenCustomPreferencePage
GenCustomPreferencePage [message #174930] Fri, 29 February 2008 04:32 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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é
Previous Topic:How to make persistent Z-Order in a gmf diagram ?
Next Topic:change default icons
Goto Forum:
  


Current Time: Thu Jul 17 19:33:59 EDT 2025

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

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

Back to the top