I am using a DataBindingContext where three Text's are bound to EMF
models by
bindingContext.bindValue(SWTObservables.observeText(text, SWT.Modify),
EMFObservables.observeValue(eObject, eStructuralFeature), new
UpdateValueStrategy(UpdateValueStrategy.POLICY_CONVERT).setAfterConvertValidator(validator),
new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER));
Those validator's are called correctly. Whenever I type something into
one of the text fields the validate method is called.
I further added an AggregateValidationStatus by
AggregateValidationStatus aggregateValidationStatus = new
AggregateValidationStatus(bindingContext,
AggregateValidationStatus.MAX_SEVERITY);
and added an IChangeListener.
The problem is that the handleChange method of that listener is only
called once (the first time I type something into one of those text
fields), but not later on anymore.
I would have exspected that the handleChange method is called as often
as one of the validators validate method is called.
How does the AggregateValidationStatus class work?
That leads me to my next question? I want to listen to whenever a
validate method of the above added validator's was called. I need it to
setPageComplete of a WizardPage (as all text fields together have an
influence on that).