Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [DataBinding] validation & undo / redo
[DataBinding] validation & undo / redo [message #518957] Fri, 05 March 2010 14:54
Matt Biggs is currently offline Matt BiggsFriend
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.
Previous Topic:add an EObject to the contents of another EObject?
Next Topic:EMF Databinding LabelProvider
Goto Forum:
  


Current Time: Mon Sep 23 14:52:59 GMT 2024

Powered by FUDForum. Page generated in 0.02547 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top