|Modifier and Type||Field and Description|
Key of a context value specifying a limit for the number of problems propagated up the view model hierarchy from any given control.
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
"*" 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,
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.
Copyright © 2020. All rights reserved.