Sirius Epsilon integration [message #1754690] |
Tue, 21 February 2017 15:26 |
Michaël Melchiore Messages: 47 Registered: April 2012 |
Member |
|
|
Hello folks,
This a cross-post from the Eclipse Epsilon forum.
I am writing a simple code generation tool based on the EMF ecosystem.
I have chosen Sirius to develop the diagram editor but would like to use Epsilon for M2M and model validation activities.
I have written sample validation rules and successfully tested them in EMF tree-based editor (validation, quickfixes, ...). In the Sirius-based editor, the rules are correctly invoked but the following features don't work :
- the offending items are not flagged in the diagram view
- the quick fix suggestions are not taken into account
I have declared an org.eclipse.ui.ide.markerResolution extension with the org.eclipse.sirius.diagram.ui.diagnostic markerType but I think I am missing something.
I have attached a small example to demonstrate the issue. I am using :
- Eclipse Mars.2 Release (4.5.2)
- Sirius 3.1.3
- Epsilon 1.4.0.2
I used nested Eclipse to set up my tests : first workspace is the content of the eclipse folder, and the runtime folder holds the content of the nested workspace. To reproduce the problem, compare model validation from the tree-based editor and Sirius editor.
In the tree-based editor, everything works fine (validation, Problem display, quick fixes). In the Sirius diagram, the model validation is successfully triggered , but errors are not flagged in the diagram. Quick fix suggestions are also ignored.
Thanks for your help,
Michaël
|
|
|
Re: Sirius Epsilon integration [message #1754695 is a reply to message #1754690] |
Tue, 21 February 2017 16:01 |
|
Hi Michaël,
Did you launch the validation from the diagram using the "Validate diagram" contextual menu ?
I think not, so the markers are linked to your model resource, and currently Sirius looks for validation markers targeting the aird files (the validate diagram action will looks for markers concerning the aird files and then the uri of the flagged semantic elements.
Retrieving and displaying the validation markers targeting the semantic model might be an interesting feature. I think you might report a enhancement request in the bugzilla.
Regards,
Maxime
|
|
|
|
Powered by
FUDForum. Page generated in 0.02781 seconds