Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 461740

Summary: Validation markers do not appear on diagram for controlled resources
Product: [Modeling] Sirius Reporter: Stéphane Thibaudeau <stephane.thibaudeau>
Component: DiagramAssignee: Maxime Porhel <maxime.porhel>
Status: CLOSED FIXED QA Contact: Pierre-Charles David <pierre-charles.david>
Severity: normal    
Priority: P4 CC: maxime.porhel, pierre-charles.david, steve.monnier
Version: 2.0.3Keywords: triaged
Target Milestone: 3.1.5   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=455244
https://git.eclipse.org/r/69741
https://git.eclipse.org/r/69931
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7a5a60924eaa6d5ca4ba009d4e728e69f01a3e72
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=336d26fc98f93dce935d0e7314da60b5809010f2
Whiteboard:
Bug Depends on:    
Bug Blocks: 455244, 490907    
Attachments:
Description Flags
Example to reproduce none

Description Stéphane Thibaudeau CLA 2015-03-09 12:49:34 EDT
Created attachment 251410 [details]
Example to reproduce

The validation problems markers are displayed on a diagram.
But, if the semantic resource (or maye aird) is controlled, no decorator is displayed. The problems view show the corresponding errors though.

Steps to reproduce :

- import the provided project
- open "class diagram" on "main" EPackage
- validate diagram => decorators are displayed = OK

- open "sub1 package entities"
- validate diagrams => decorators are not displayed = OK
Comment 1 Pierre-Charles David CLA 2015-06-30 10:03:55 EDT
Probably related to bug #455244.
Comment 2 Pierre-Charles David CLA 2015-12-15 04:11:48 EST
Moving out of the 4.0 scope for now, along with all the other issues which were there "by default". This does not mean some of these will not be re-integrated at some point, but for now these issues are not part of the roadmap for 4.0.

If you feel strongly about this removal from 4.0 and/or are ready to sponsor the corresponding work, feel free to comment.
Comment 3 Maxime Porhel CLA 2016-04-01 09:25:12 EDT
The problems occurs not only on "controlled" representations (ie when the session is split with one main aird and other referenced analysis) but as soon as the a marked DDiagram is not contained in the main aird (session.getSessionResource().

Note that the markers are created on the main aird in order to avoid that Eclipse tries to open one of the referenced DAnalysis (sub aird) and create a new sub/partial session . This also ensure that if a session is already open, Sirius will reuse it and open the editor on the expected and already loaded instances when the user double clic on the marker from the problem view.
Comment 4 Eclipse Genie CLA 2016-04-01 12:09:16 EDT
New Gerrit change created: https://git.eclipse.org/r/69741
Comment 5 Eclipse Genie CLA 2016-04-05 11:23:54 EDT
New Gerrit change created: https://git.eclipse.org/r/69931
Comment 8 Maxime Porhel CLA 2016-04-13 09:39:01 EDT
Corrected on 3.1.x branch
Comment 9 Pierre-Charles David CLA 2016-04-14 04:41:13 EDT
Verified on Sirius 3.1.5rc1.
Comment 10 Maxime Porhel CLA 2016-04-21 08:45:37 EDT
Available in Sirius 3.1.5.