2 different diagram projects for the same domain model projects: possible? [message #166276] |
Sun, 23 December 2007 17:38 |
Philipp Kutter Messages: 306 Registered: July 2009 |
Senior Member |
|
|
Hi.
I am following tutorial part one, and everything works well.
One point I am concerned. The id of my model plugin as I did
set it up is org.examples.mindmap.base
After following the tutorial, the diagram code was automatically
generated into a plugin org.examples.mindmap.base.diagram, although
all my generator models are in a plugin org.ecamples.mindmap.diagram
By coincidence, this is what I wanted for now.
But what can I do, if I want to generate two different diagram editors
for the same domain model? If the generator takes just the id of the
EMF-model plugin and adds ".diagram" to it, I cannot do this.
Being able to have two different diagram editors for the same domain
model would be very handy, not only in applications, but especially,
while learning GMF.
Does anyone have a hint, how I can generate two different
diagram-editors for the same domain model? I mean reusing the same
genmodel and generated code for that domain model.
Thanks a lot in advance,
Philipp
|
|
|
|
Re: 2 different diagram projects for the same domain model projects:possible? [message #166313 is a reply to message #166306] |
Wed, 26 December 2007 14:00 |
Philipp Kutter Messages: 306 Registered: July 2009 |
Senior Member |
|
|
Hi, Alex.
Great, I got the things that must be unique:
Diagram File Extension
Model ID
Editing Domain ID
GEnPlugin ID and project name
Ed Merks just fixed a bug, that allows to give explicit plugin id's for
the model, .edit, and .editor plugins from EMF.
Like this, a separate .edit plugin can be generated per editor too. Thus
its possible to share just the domain code, and have everything else
separate.
Best, Philipp
Alex Shatalin wrote:
> Hello Philipp,
>
> You can use "ID" property of GenPlugin node from .gmfgen to modify
> GMF-generated plugin name. See:
> http://wiki.eclipse.org/GMF_GenModel_Hints#GenPlugin.
>
> With this property you should be able to create two diagrams for the
> same domain model. In addition in this case I suggest you to take care
> on all the properties mentioned as "unique" here:
> http://wiki.eclipse.org/GMF_GenModel_Hints.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02592 seconds