Is it possible to use GMF on a abstract semantic model ? [message #205851] |
Wed, 17 September 2008 19:34 |
Eclipse User |
|
|
|
Originally posted by: omoises.nospam-nordnet.fr
Hi,
I have 2 metamodels, one contains almost only abstract classes (abstract
metamodel), another one contains classes inheriting from classes of the
first metamodel (concrete metamodel).
The abstract metamodel contains only few classes, but the concrete one
will contain more than 100 classes. I will also have other concrete
metamodels (inheriting from the abstract one).
For that, I would like to create my editor using only the abstract
metamodel (and of course as many factories/adapters I will need ;-) to
create concrete models).
I have written a first GEF based POC and it seems to work, but after
writing somme commands, I realize that I am rewriting several parts of
GMF !!
Then my question is : is it possible to use GMF (and generators) based
on abstract metamodels ?
Thanks in advance,
Olivier Moises
|
|
|
|
Re: Is it possible to use GMF on a abstract semantic model ? [message #206006 is a reply to message #205915] |
Thu, 18 September 2008 12:33 |
Eclipse User |
|
|
|
Originally posted by: omoises-no-spam.no-spam-nordnet.fr
Alex,
First, thanks for your answer.
Generating a diagram code is not possible because then gmfgen editor
does not propose abstract classes as valid options for domain element
binding.
Then now, there is 2 solutions :
* bypassing the editor and writing the gmfgen model by hand, but I am
not sure that the generation phase will be successful
* creating a fake concrete metamodel and using it to generate the full
diagram. In this case, what about the re-generation cycles if needed
(the metamodels are not stable and will be modified several times in the
next days !!)
Thanks
Olivier
Alex Shatalin a écrit :
> Hello Olivier,
>
> I think so.
> The only problem to my understansing are palette tools creating some
> concrete class instances. I think these tools have to be implemented
> manually.
>
> You can try to describe your diagram structure using only abstract
> classes (without any palette creation tools), generate diagram editor
> and try to initialize diagram instance using existing model file (with
> some concrete instances in it). If you can see this diagram editor
> working then you can try to go on with the palette tools.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05198 seconds