|
Re: EMF saving resources problem [message #964356 is a reply to message #964191] |
Tue, 30 October 2012 13:01 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Mat,
Comments below.
On 30/10/2012 11:29 AM, Mat Mathiew wrote:
> I have a big problem that I cannot figure out for days now with EMF.
>
> I have some multipage editors in an eclipse rcp app and I am using EMF
> as the model.
> I have a class which finds the root of the models and pass it to
> subsequent pages which modify it and if there is a change the page is
> set as dirty and the user can save it.
You're not using a command stack as in the generated editor?
>
> The problem is that *sometimes* without giving error even if the pages
> are detected as dirty and emf save method is called the data are just
> not saved!!
Failure to save should thrown an exception.
>
> I really cannot figure out why this happens and why is it some times
> only...
You must have a try-catch around the calls to save, because it throws
IOException, so you should see failures there, if they happen.
> Any ideas will be highly appreciated!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03201 seconds