Implement a custom model validation provider for CAL #55
Closed
Labels
complexity: medium
P1
High priority
scope: model validation
Issues related to validating models
thesis-required
Issue must be closed to complete the thesis
Based on the investigation from #33, implement a model validation provider (a class that implements
IValidationDescriptionProvider
) for additional semantic CAL model validations.Idea
There will be a new interface
Each semantic rule (e.g. #27) will implement it.
The
SemanticCALValidationDescriptionProvider
will receive a list ofISemanticCALValidationRule
s and propagate the concatenated diagnostics returned by running each rule.Resources
the
EMFValidationService
used in Sirius Components to show the EMF model validationhttps://github.com/eclipse-sirius/sirius-components/blob/master/backend/sirius-web-emf/src/main/java/org/eclipse/sirius/web/emf/services/EMFValidationService.java
how to get the objects inside of an
EditingContext
https://github.com/eclipse-sirius/sirius-components/blob/ab8097c6c3593f10fdd16f9212762624a3639ccc/backend/sirius-web-emf/src/main/java/org/eclipse/sirius/web/emf/services/EMFValidationService.java#L110-L112
Note that this uses the
EditingContext
class, not theIEditingContext
interface.That class just casts
IEditingContext
toEditingContext
: https://github.com/eclipse-sirius/sirius-components/blob/ab8097c6c3593f10fdd16f9212762624a3639ccc/backend/sirius-web-emf/src/main/java/org/eclipse/sirius/web/emf/services/EMFValidationService.java#L54-L62We can probably do the same.
The text was updated successfully, but these errors were encountered: