[DataBinding] validation & undo / redo [message #518957] |
Fri, 05 March 2010 14:54 |
Matt Biggs Messages: 71 Registered: July 2009 |
Member |
|
|
I'm a little stuck on how i can get UpdateValueStrategy validation working with EMF and the undo / redo stack.
I've created a simple text control to EMF string attribute databinding.
I've then got an EMFUpdateValueStrategy with an IValidator that checks if the entered string is empty or not.
The problem is that if the string is empty, the validation returns a ValidationStatus.error() and this actually prevents the value from being set onto the model.
As such you then get no undo/redo as obviously nothing in the command stack has actually changed.
I just wondered what other peoples experiences are with this and if there are any clever workaround people have come up with.
Its a bit strange to the user to have undo sometimes and not othertimes.
|
|
|
Powered by
FUDForum. Page generated in 0.02547 seconds