Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Issue with shared editing domain
Issue with shared editing domain [message #492760] Wed, 21 October 2009 15:50 Go to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm trying to share editing domain between several GMF diagrams that are persisted in the same file with the model.
So the use case is :
- 1 file
- 1 GMF Diagram of type A
- several GMF diagram of type B

I followed the GMF tips on the wiki : http://wiki.eclipse.org/GMF_Tips#Sharing_single_EditingDomai n_instance_across_several_diagrams
and also tale a look at http://www.eclipse.org/articles/Article-Integrating-EMF-GMF- Editors/index.html#extending_the_editor_input

The shared editing domain seems to work only if I have one Diagram A and one Diagram B open. Otherwise it prompts me if I want to reload Sad


So I tried to use GMFTools, I look a little inside and they seems to do what is done in the gmf tips and adding other things. In this case, all editors are set sirty/saved at the same time if they are already brought to top.

So I have several questions :
- Is the shared editing domain on the wiki can suipport only two diagram open at the same time?
- Why GMF Tools has this strange behavior? seems to shared the dirty/saved state between all editors.
- Missed I something?

I will be very thankful for any hints,

Aurelien Pupier


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Issue with shared editing domain [message #492863 is a reply to message #492760] Thu, 22 October 2009 07:16 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Aurelien Pupier wrote on Wed, 21 October 2009 11:50
Hi,

I'm trying to share editing domain between several GMF diagrams that are persisted in the same file with the model.
So the use case is :
- 1 file
- 1 GMF Diagram of type A
- several GMF diagram of type B

I followed the GMF tips on the wiki : http://wiki.eclipse.org/GMF_Tips#Sharing_single_EditingDomai n_instance_across_several_diagrams
and also tale a look at http://www.eclipse.org/articles/Article-Integrating-EMF-GMF- Editors/index.html#extending_the_editor_input

The shared editing domain seems to work only if I have one Diagram A and one Diagram B open. Otherwise it prompts me if I want to reload Sad



Ok, I targeted more precisely my bad behavior :
it can work following a way... any other prompt me to ask the reload.
What is working?
- open a diagram A
- open a diagram B
- come back to A, modify it and save it
- go to B, modify it and save it

at each time that you open a diagram B, you must return to A, modifiy it and save it and then go to the one that you just opened before and do the same.

After these actions done, you can modify each editor as you want, the editing domain is succesfully shared.

Any ideas why the initialization is not done correctly for me? What is triggered during this manipulation? Which event can I send to simulate it?

Thanks by advance




Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Editing diagram programatically
Next Topic:Disable multiple selection
Goto Forum:
  


Current Time: Thu Mar 28 19:24:33 GMT 2024

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

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

Back to the top