Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Create multiple editors on one model (another one)
Create multiple editors on one model (another one) [message #172748] Sun, 17 February 2008 18:23
Eclipse UserFriend
Originally posted by: mail.andre-heuer.de

Hi,

I think, my problem is not really discussed yet, so:
I have created an ecore model (simplified here:
www.andre-heuer.de/example.png). The class AllModels contains two models
named ModelA and ModelB. Based on these two classes I want to create two
different diagram editors as different "views" to the AllModels (-instance).
There should be one instance of "AllModels" which can contain at most one
instance of ModelA and many instances of ModelB saved in one file and
sharing one EditingDomain for concurrency issues.
Currently, I have two editors sharing one EditingDomain with the diagram
roots ModelA and ModelB. I can edit the models with the editors for ModelA
and ModelB. But if I add an instance of ClassA in ModelA´s editor, close
(after saving) the editor and open it for ModelB, you can see all previously
created elements from ModelA in the editor of ModelB. And now, you can not
add any elements from ModelB to the editors pane (that´s clear, because the
root element of the shown diagram on the editors pane is ModelA...).
How can I change this behaviour? And how can I add multiple instances of
ModelB in one single file (containing one instance of AllModels) and edit
only one instance of ModelB per editor instance?

I hope, anyone can understand my description and my problem ;-)

Best regards,
André Heuer
Previous Topic:problem with notifications
Next Topic:Tooling for editor extension?
Goto Forum:
  


Current Time: Sun Jul 27 06:28:44 EDT 2025

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

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

Back to the top