[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: [CDO] CDOSavePoint and rollback question

Sebastian Paul schrieb:
Hi Eike,
thanks for your comments!

My application used CDO with a JVMConnector and MemStore. Committing a transaction does not mean that the document is actually saved.
If your editor contains a ResourceSet that is associated with one or more CDOTransactions I suggest that you register an IListener with these transactions to receive these IEvents:

You can react by firing DIRTY events from the editor so that the "*" disappears.
I'm not sure what you are driving at. I think you are talking about the generated editor that would display a "*" when there are changes that are not committed, right? Why should it disappear when DIRTY events are fired? And what are these "dirty" events?
Perhaps I was not clear enough. In editors you can find calls like this:

                    firePropertyChange(IEditorPart.PROP_DIRTY);

Which causes the wrokbench to call back on isDirty() or so. You can use this mechanism to sync the diry state of an EditorPart with the dirty state of a CDOTransaction.


In my example application, I did not use the generated editor, I did not use an editor at all. Just a simple view, with controls data-bound to my model. It was a proof-of-concept for us.
Then I don't understand why you were talking about "documents"...

Cheers
/Eike

----
http://thegordian.blogspot.com


JPEG image