Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Synchronizing Model
Synchronizing Model [message #534927] Thu, 20 May 2010 16:09 Go to next message
Gary Leask is currently offline Gary LeaskFriend
Messages: 28
Registered: July 2009
Junior Member
I have two EMF models that I have written graphical editors to
manipulate them. Each of the model can also save information in the
other persisted XML file.

However when I have saved data in the other file from the current editor
or editing the file directly. and I select the editor again it returns
an error pop up dialog thats states the file has been changed on the
file system. Do I want to load the changes?

If I select yes and the current file has not been saved I lose the
current work. I know the file has been changed, is there any way to
synchronize the the ResourceSetInfo and force the
myUnSynchronizedResources to be updated and not lose the changes in the
current editor.
Re: Synchronizing Model [message #534970 is a reply to message #534927] Thu, 20 May 2010 19:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Gary,

It sounds like the editors should share a single editing domain.


Gary Leask wrote:
> I have two EMF models that I have written graphical editors to
> manipulate them. Each of the model can also save information in the
> other persisted XML file.
>
> However when I have saved data in the other file from the current
> editor or editing the file directly. and I select the editor again it
> returns an error pop up dialog thats states the file has been changed
> on the file system. Do I want to load the changes?
>
> If I select yes and the current file has not been saved I lose the
> current work. I know the file has been changed, is there any way to
> synchronize the the ResourceSetInfo and force the
> myUnSynchronizedResources to be updated and not lose the changes in
> the current editor.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XSD-->Ecore, support for xml elements in the xsd:annotation?
Next Topic:Copy EObject from one list to another
Goto Forum:
  


Current Time: Sat Apr 27 05:14:09 GMT 2024

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

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

Back to the top