public interface ValidationUpdateListener
Modifier and Type | Method and Description |
---|---|
static void |
deregister(ValidationService validationService,
ValidationUpdateListener listener)
De-register a
listener from the given validation service. |
static boolean |
register(ValidationService validationService,
ValidationUpdateListener listener)
Register a
listener with the given validation service, if it supports it. |
void |
validationUpdated(Collection<org.eclipse.emf.common.util.Diagnostic> diagnostics)
Notifies the listener of updates to the model validation state.
|
void validationUpdated(Collection<org.eclipse.emf.common.util.Diagnostic> diagnostics)
Notifies the listener of updates to the model validation state.
This is an incremental update: it provides validation status of settings
in model objects, including results that explicitly indicate absence
of problems (indicating that problems previously reported are resolved).
Every diagnostic in the collection has at least two elements in the
data
list, of which the first two are:
EObject
that owns the feature that was validatedEStructuralFeature
of the object that was validated
If any feature of any object that was previously reported as having
problems no longer has problems, then an Diagnostic.OK
diagnostic
will be present for that setting. Otherwise, there may be one or more
problem diagnostics for that setting. In any case, if the validation
state of a setting is changed, then this collection contains the entire
current validation state of that setting.
diagnostics
- the current validation problems in settings (features
of objects) that were validatedstatic boolean register(ValidationService validationService, ValidationUpdateListener listener)
listener
with the given validation service, if it supports it.validationService
- a validation servicelistener
- the listener to registertrue
if the listener
was registered; false
, otherwisestatic void deregister(ValidationService validationService, ValidationUpdateListener listener)
listener
from the given validation service.validationService
- a validation servicelistener
- the listener to deregisterCopyright © 2019. All rights reserved.