Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » 2 different diagram projects for the same domain model projects: possible?
2 different diagram projects for the same domain model projects: possible? [message #166276] Sun, 23 December 2007 17:38 Go to next message
Philipp Kutter is currently offline Philipp KutterFriend
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 #166306 is a reply to message #166276] Wed, 26 December 2007 10:57 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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
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 Go to previous message
Philipp Kutter is currently offline Philipp KutterFriend
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
>
>
Previous Topic:Ease of changeability of Ecore Editor
Next Topic:newbie: Wizard can't started.
Goto Forum:
  


Current Time: Thu Apr 25 13:09:28 GMT 2024

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

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

Back to the top