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

Bug 528324

Summary: Internationalized palette elements are duplicated on reload
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 Keywords: triaged
Version: 5.0.0   
Target Milestone: 5.1.1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 52238    
Bug Blocks:    

Description Pierre-Charles David CLA 2017-12-08 09:46:02 EST
Clone of bug #522368 to report the fix on Sirius 5.1.x.
Comment 1 Pierre-Charles David CLA 2017-12-08 09:59:56 EST
When a model reload triggers a DDiagramEditorImpl.setInput(), elements from the palette which are configured to be internationalized are duplicated.

Steps to reproduce:
1. Import the attached modeler.
2. Launch a separate runtime.
3. In the runtime, import the attached sample session.
4. Open the session and the diagram inside. The diagram is empty, and the palette shows a single section ("Outils") with a single entry ("Créer").
5. Open the MyEcore.ecore semantic model using a text editor (from Eclipse or outside, it doesn't matter). Add some blank lines at the end and save the file. If you modified the file from outside Eclipse you may need to refresh the workspace (or wait for it to happen automatically).
6. Go back to the diagram: the elements in the palette have been duplicated (sometimes twice, producing 3 copies).

Fixing this should be a simple matter of cherry-picking https://git.eclipse.org/r/111782 which fixed it for 4.1.x.
Comment 2 Pierre-Charles David CLA 2017-12-20 03:05:39 EST
Clone created by mistake, there's already bug #527397.
Comment 3 Pierre-Charles David CLA 2018-02-01 03:25:48 EST
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.