Data Binding - how to track if a form is dirty [message #323754] |
Mon, 07 January 2008 12:50  |
Eclipse User |
|
|
|
Originally posted by: jkosmoski.snotmail.com
New to Data Binding and I'm using it to bind a simple form to a simple
model.
I want to track when anything in the model has changed and thus the form is
dirty and needs to be saved.
There appear to be several ways one could do this, but I suspect there is a
proper/best way that I have been unable to figure out.
Any help/hints would be much appreciated. Thanks, - Jon
|
|
|
|
|
|
|
Re: Data Binding - how to track if a form is dirty [message #323897 is a reply to message #323754] |
Fri, 11 January 2008 09:36  |
Eclipse User |
|
|
|
Originally posted by: bokowski.ca.ibm.com
This functionality really belongs in your model layer (as does undo/redo),
as others have pointed out, and using EMF is definitely worth considering.
If your model layer cannot help you with this, a workaround might be to
track changes to all the model objects in a certain data binding context.
Have a look at WizardPageSupport.uiChangeListener, it does something similar
for the UI side of things to avoid having wizard pages that start in an
error state.
Boris
"Jon Kosmoski" <jkosmoski@snotmail.com> wrote in message
news:fltopq$t8d$1@build.eclipse.org...
> New to Data Binding and I'm using it to bind a simple form to a simple
> model.
> I want to track when anything in the model has changed and thus the form
> is dirty and needs to be saved.
>
> There appear to be several ways one could do this, but I suspect there is
> a proper/best way that I have been unable to figure out.
> Any help/hints would be much appreciated. Thanks, - Jon
>
|
|
|
Powered by
FUDForum. Page generated in 0.28394 seconds