Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Integration of 2 GMF editors
Integration of 2 GMF editors [message #231952] Mon, 01 June 2009 15:37
Javier is currently offline JavierFriend
Messages: 57
Registered: July 2009
Member
I have a large Ecore model for which I have 2 editors: one for process
modeling and another for static modeling. Those 2 editors were
originally auto-generated, and some modifications to the code have been
done afterwards. The 2 editors have different extensions for the
notation file.

For now, what I'm trying to do is make this 2 editors to share an
EditingDomain and hence use the same instance of the model. I haven't
implemented any additional MultiPageEditorPart and added pages for the
editors (as integration between EMF and GMF editors), I'm just working
with the 2 original editors. The problem I'm getting is the following.

Let's say I start modeling process, it works fine. Then, I want to model
some static issues, so I create a document for the second editor. The
problem is that right there at creation, DiagramUpdater of the process
editor is being called (instead of the DiagramUpdater of the right
editor) and the program is failing (the canvas element is different for
both editors). I debugged and although it is actually going through the
DocumentProvider of the right editor, then it calls the wrong
DiagramUpdater. Why is this working that way? Is it because both editors
use a model with the same extension? Is it because of the shared
EditingDomain? Is this the right behavior, or should I define a new
MultipageEditor an insert both editors in a page?

Thank you guys,

Javier.
Previous Topic:Xpand validation always successful?
Next Topic:How to count number in time of initialization of a document
Goto Forum:
  


Current Time: Thu Apr 25 07:44:07 GMT 2024

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

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

Back to the top