Class ValidationServiceConstants
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.validation.ValidationServiceConstants
-
public final class ValidationServiceConstants extends java.lang.Object
Constants for use with theValidationService
.- Since:
- 1.21
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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 java.lang.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).
-
-
-
Field Detail
-
PROPAGATION_LIMIT_KEY
public static final java.lang.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 globalViewModelService
registered at a priority less than theValidationService
priority (which by default is1.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.
-
PROPAGATION_UNLIMITED_VALUE
public static final java.lang.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).- See Also:
PROPAGATION_LIMIT_KEY
-
-