Bug 528324 - Internationalized palette elements are duplicated on reload
Summary: Internationalized palette elements are duplicated on reload
Status: CLOSED INVALID
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 5.1.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 52238
Blocks:
  Show dependency tree
 
Reported: 2017-12-08 09:46 EST by Pierre-Charles David CLA
Modified: 2018-02-01 03:25 EST (History)
0 users

See Also:


Attachments

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