public class UMLProfileConstraintProvider extends LoadableConstraintProvider
Pending improvement of the EMFv API:
Two ConstraintProviders should be specified for the one Category for the org.eclipse.emf.validation.constraintProviders extension point.
The first ConstraintProvider default-classed XmlConstraintProvider may have a single placeholder constraint that provides the initial content of the Model Validation Constraints Preference page.
The second ConstraintProvider deriving from LoadableConstraintProvider should have a Path-languaged constraint with an XML path parameter locating the model source of the loadable constraints. These will be loaded by the first validation run and repopulate the Preference page with their content.
See org.eclipse.ocl.examples.xtext.tests/plugin.xml for an example.
Constructor and Description |
---|
UMLProfileConstraintProvider() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
load(EnvironmentFactory environmentFactory,
org.eclipse.emf.common.util.URI uri,
java.util.Set<org.eclipse.emf.validation.model.Category> categories) |
getOCL, installConstraint, installContents, installDescriptor, installResource, setInitializationData, toString
protected boolean load(@NonNull EnvironmentFactory environmentFactory, @NonNull org.eclipse.emf.common.util.URI uri, @NonNull java.util.Set<org.eclipse.emf.validation.model.Category> categories)
load
in class LoadableConstraintProvider