| Summary: | No validation rule on root | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Emmanuel Billaud <billaud.emmanuel> | ||||
| Component: | Diagram | Assignee: | Project Inbox <sirius.diagram-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P1 | CC: | belqassim.djafer, esteban.dugueperoux, florian.barbin, laurent.redor, mickael.lanoe, pierre-charles.david | ||||
| Version: | 1.0.0 | Keywords: | triaged | ||||
| Target Milestone: | 3.0.0M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | trivial | ||||||
| Attachments: |
|
||||||
I confirm the bug. Technical explain : Already the org.eclipse.sirius.diagram.tools.internal.validation.constraints.Error/Info/WarningConstraint constraints are registred in plugin.xml only for DDiagramElement target and not for DDiagram. And in the mother class AbstractDDiagramConstraint, we check only for DDiagramElements. In addition SemanticValidationRule evalution create markers on .aird resource while these markers should be associated to the related semantic resources. currently working on it Verified on Sirius 3.0.0M6 Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |
Created attachment 245928 [details] Plug-ins and project showing the bug It is not possible to validate the root element of the diagram using a semantic rule if it has no graphical representation. The attachment contains : - the four plugins from the GetStarted page sligthly modified (semantic rule added, and renaming diagram) ; - a project named RootValidation that shows the problem. On the given project, two diagrams are available : - diagOK, where the root element is displayed -> an error is raised when validating ; - diagKO, where the root element is not displayed -> no error is raised.