| Summary: | Internationalized palette elements are duplicated on reload | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Pierre-Charles David <pierre-charles.david> |
| Component: | Diagram | Assignee: | 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
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.
Clone created by mistake, there's already bug #527397. Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details. |