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

Bug 517534

Summary: [aird editor] change icons for representation descriptions to better distinguish those from representation
Product: [Modeling] Sirius Reporter: Pierre Guilet <pierre.guilet>
Component: CoreAssignee: Pierre-Charles David <pierre-charles.david>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: enhancement    
Priority: P3 CC: julien.dupont, pierre-charles.david
Version: unspecifiedKeywords: triaged
Target Milestone: 5.0.1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/99861
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d1e44ecd3c1e273c5fe3c25c4c51fce8c989456e
https://git.eclipse.org/r/100138
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d669d316dd3edd9a65b98b609d331b4a5b6e67ce
https://git.eclipse.org/r/100185
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e40d3480ca0fc64724032b60414ff92d3e9fa46a
Whiteboard: aird_editor ui icons model_explorer
Attachments:
Description Flags
Proposed icons none

Description Pierre Guilet CLA 2017-05-31 08:49:38 EDT
The icons for representation description and representations in the representations block of aird editor or in the create new representation wizard are exactly the same. So user can be confuse to distinguish those.

We should set different icons for both concept.
Comment 1 Pierre-Charles David CLA 2017-06-08 08:53:53 EDT
Created attachment 268818 [details]
Proposed icons
Comment 2 Pierre-Charles David CLA 2017-06-13 10:58:25 EDT
Note that this is not as trivial as is sounds, as the current code (see org.eclipse.sirius.ui.tools.internal.views.common.navigator.SiriusCommonLabelProvider.getImage(Object)) explicitly uses the a representation's *description* icon instead of the representation instance's one. There are reasons for doing so, related to the label provider being in a core plug-in while the icons are defined in the dialect-specific metamodels/plug-ins. I don't remember the details right now, but Maxime knows about them.

Changing this behavior in the SiriusCommonLabelProvider will also change it in the model explorer and in all other places where CNF displays Sirius session elements.
Comment 3 Eclipse Genie CLA 2017-06-22 08:48:57 EDT
New Gerrit change created: https://git.eclipse.org/r/99861
Comment 5 Pierre-Charles David CLA 2017-06-27 03:46:43 EDT
Fixed by d1e44ecd3c1e273c5fe3c25c4c51fce8c989456e. We'll need to update the screenshots, but otherwise we're done.
Comment 6 Eclipse Genie CLA 2017-06-27 10:30:13 EDT
New Gerrit change created: https://git.eclipse.org/r/100138
Comment 8 Eclipse Genie CLA 2017-06-28 04:22:59 EDT
New Gerrit change created: https://git.eclipse.org/r/100185
Comment 10 Pierre-Charles David CLA 2017-06-30 09:46:42 EDT
Available in Sirius 5.0.1, see https://wiki.eclipse.org/Sirius/5.0.1 for details.