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.

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!!

I really cannot figure out why this happens and why is it some times only...
Any ideas will be highly appreciated!

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!