public final class ValidationInitializerUtil
extends java.lang.Object
Constructor and Description |
---|
ValidationInitializerUtil() |
Modifier and Type | Method and Description |
---|---|
static IValidationEngine |
initializeValidationWithRegisteredConstraintsOnScope(org.eclipse.viatra.query.runtime.api.scope.QueryScope scope,
java.lang.String editorId)
Initializes a new validation engine implementing the IValidationEngine interface on the provided Notifier
instance with the constrains specified for the given editor Id.
|
public static IValidationEngine initializeValidationWithRegisteredConstraintsOnScope(org.eclipse.viatra.query.runtime.api.scope.QueryScope scope, java.lang.String editorId) throws org.eclipse.viatra.query.runtime.exception.ViatraQueryException
scope
- The Notifier object on which the validation engine should be initialized.editorId
- An editor Id for which we wish to use the registered constraint specifications at the
org.eclipse.viatra.addon.livevalidation.runtime.constraintspecification extension point.org.eclipse.viatra.query.runtime.exception.ViatraQueryException
- if there is an error creating the engine on the scope