Bug 454424 - Sirius Content extension overrides existing decorator
Summary: Sirius Content extension overrides existing decorator
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-12-08 08:31 EST by Koen Staal CLA
Modified: 2014-12-23 08:44 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.