public final class ValidationServiceConstants extends Object
ValidationService
.Modifier and Type | Field and Description |
---|---|
static String |
PROPAGATION_LIMIT_KEY
Key of a context value
specifying a limit for the number of problems propagated up the view model hierarchy
from any given control.
|
static Object |
PROPAGATION_UNLIMITED_VALUE
Value of the propagation limit in the context
indicating unlimited propagation (which is the default in the absence of any value).
|
public static final String PROPAGATION_LIMIT_KEY
Key of a context value
specifying a limit for the number of problems propagated up the view model hierarchy
from any given control. Values are either a positive Integer
for a propagation limit
or "*"
for unlimited propagation. The default is unlimited propagation, so the
use cases for the "*"
value should be few in number.
If this value is to be injected into the context by a client application, it is
recommended to do so via the factory APIs that accept an initial map of context values,
for example,
ViewModelContextFactory.createViewModelContext(VElement, EObject, Map)
.
For applications that are not in control of the editor's context lifecycle, an alternative
approach is to set context values in the initialization of a global ViewModelService
registered at a priority
less than the ValidationService
priority (which by default is 1.0
. This ensures that the service
setting the context value is initialized before the validation service, so that the context value can be put
before the validation service picks it up.
public static final Object PROPAGATION_UNLIMITED_VALUE
PROPAGATION_LIMIT_KEY
Copyright © 2019. All rights reserved.