Bug 454424

Summary: Sirius Content extension overrides existing decorator
Product: [Modeling] Sirius Reporter: Koen Staal <koen.staal>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: pierre-charles.david
Version: unspecifiedKeywords: triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Koen Staal CLA 2014-12-08 08:31:53 EST
SiriusCommonLabelProvider.getImage 
which has a specific case for IFile to add the M decorator. is made like this and not with the decorator extension point to avoid 
loading Sirius too soon.  re-check it and find a 
way to keep the other decorators like your red cross decorator.

Original description:
https://www.eclipse.org/forums/index.php/m/1498342/?srch=koen#msg_1498342
Project using a decorator (red cross icon) on file resources get removed when adding the modelling nature.
How can i have the modelling nature and keep the decorator (error icon) on the file?
Comment 1 Pierre-Charles David CLA 2014-12-23 08:44:52 EST
Steps to reproduce:
1. Go to the "Modeling" perspective and create a new modeling project, add an empty ecore file in it. It has the blue "M" marker (OK).
2. Open the ecore with the sample reflective ecore editor, and validate the empty package in it. It should produce errors because the package has no name, nsPrefix or nsURI. Error markers appear in the 'Problems' view, in the opened editor, in the property view, but *not* on the ecore file in the "Model Explorer" (KO).
3. Right-click on the project and remove the Modeling nature (Configure > Remove Modeling Nature). Then right click on the aird (the session is still opened) and close the session. The blue "M" marker disappears (OK), and reveals the red cross marker that was present hidden by it before (KO).
4. Convert the project back as a Modeling project, and the blue "M" reappears on the ecore, hiding again the red cross.