Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » 2 diagram editors for the same domain metamodel
2 diagram editors for the same domain metamodel [message #227738] Mon, 27 April 2009 16:37 Go to next message
Yuri G is currently offline Yuri GFriend
Messages: 32
Registered: July 2009
Member
Hello!

I've generated 2 diagram editors for 1 metamodel:

editor #1 is generated for the domain meta element A,
editor #2 is generated for the domain meta element B which is a child of
A.

Editor plugins reside in separate .diagram projects but share common EMF
model- and edit- code.

Each of the editors works fine separately. But launching them together
leads to unexpected conflict.

I've followed all the advices about setting unique properties in gmfgen
models, given in these threads:

http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg05230.html
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg10133.html
and
http://wiki.eclipse.org/index.php/GMF_GenModel_Hints

Maybe the problem lies in the relationship between the domain elements for
which I generate diagram editors? Any suggestions?
Re: 2 diagram editors for the same domain metamodel [message #227867 is a reply to message #227738] Tue, 28 April 2009 11:25 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Yuri,

Open http://wiki.eclipse.org/index.php/GMF_GenModel_Hints document, search
for "unique" keyword and modify both .gmfgen models used to generate diagram
editors to make corresponding properties unique..
I suppose the reason is in some property name clashing across these two editors.

-----------------
Alex Shatalin
Re: 2 diagram editors for the same domain metamodel [message #227912 is a reply to message #227867] Tue, 28 April 2009 11:53 Go to previous messageGo to next message
Yuri G is currently offline Yuri GFriend
Messages: 32
Registered: July 2009
Member
Hello, Alex. Thank you for reply!

Yes, I double checked all the mentioned unique properties of gmfgen
models. No success.

Though I've finally found the solution to my problems - I've made property
"Package Name Prefix" of GenEditorGenerator also unique for each editor. I
guess it prevents any other class name collisions. Would be good to
mention this issue in wiki I guess.
Re: 2 diagram editors for the same domain metamodel [message #227928 is a reply to message #227912] Tue, 28 April 2009 11:59 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Yuri,

> each editor. I guess it prevents any other class name collisions.
> Would be good to mention this issue in wiki I guess.
This is strange - two different diagram editors are generated into two different
plugins and should not be mixed in a classpath (only in case one of these
editors has a dependency on another one).
Anyway, your modification is legal. I'll try to find the reason for it. In
case ne of the latest changes in GMF requires it I’ll update wiki page.

Thanks a lot for the report!
-----------------
Alex Shatalin
Previous Topic:Control Referenced Resource Loading
Next Topic:Mistake when I try to do an extension genmodel with the M6 version
Goto Forum:
  


Current Time: Thu Apr 25 15:19:51 GMT 2024

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

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

Back to the top