Use EObjectValidator in UpdateValueStrategy [message #896979] |
Fri, 20 July 2012 12:12  |
Eclipse User |
|
|
|
I am trying to connect the validation methods I've defined in an EObjectValidator to an AggregationValidationStatus so that it can produce validation messages in the UI.
So far, I've got the following code when I create the binding:-
binding = bindingCtxt.bindValue(uiObs, modelObs, new EMFUpdateValueStrategy().setAfterConvertValidator(new IValidator() {
@Override
public IStatus validate(Object value) {
/* WHAT DO I NEED TO PUT IN HERE? */
}
}), null);
So the question is, how do I make my EObjectValidator do the validation work for me to get the relevant messages from the model validation in the UI?
Thanks in advance.
Simon
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03499 seconds