| Summary: | RepresentationNavigationDescription.label should be used in displayed menus instead of its name/id | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Maxime Porhel <maxime.porhel> | ||||
| Component: | Diagram | Assignee: | Project Inbox <sirius.diagram-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | belqassim.djafer, esteban.dugueperoux, laurent.redor, pierre-charles.david | ||||
| Version: | 1.0.1 | Keywords: | triaged | ||||
| Target Milestone: | 3.0.0M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | trivial, flash, newbie | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 456341 | ||||||
| Attachments: |
|
||||||
|
Description
Maxime Porhel
Created attachment 247973 [details]
Contextual menu on a sample metamodel
fixed on master (for sirius2.0) with the commit 07589cd5e092ac9b4c9ad7b47528777a0e465b66 (In reply to Belqassim Djafer from comment #2) > fixed on master (for sirius2.0) with the commit > 07589cd5e092ac9b4c9ad7b47528777a0e465b66 The bug is still there, it is present if there is no navigation name expression. The bug exists in Diagram, Table and Tree dialects org.eclipse.sirius.business.api.query.IdentifiedElementQuery.getLabel() should be used instead of navDesc.getName(): . line 236 of OpenMenuContribution.buildOpenRepresentationActions(IMenuManager, IInterpreter, RepresentationNavigationDescription, DRepresentationElement, Session, EditPart, TransactionalEditingDomain) . line 413 of DTableMenuListener.buildOpenRepresentationActions(IMenuManager, IInterpreter, RepresentationNavigationDescription, DRepresentationElement, Session) . line 333 of DTreeMenuListener.buildOpenRepresentationActions(IMenuManager, IInterpreter, RepresentationNavigationDescription, DRepresentationElement, Session) Note that for Diagram/Table/Tree creation description menu, the label is already used (org.eclipse.sirius.ui.tools.api.actions.AbstractCreateRepresentationFromRepresentationCreationDescription.getText()). (In reply to Maxime Porhel from comment #3) > (In reply to Belqassim Djafer from comment #2) > > fixed on master (for sirius2.0) with the commit > > 07589cd5e092ac9b4c9ad7b47528777a0e465b66 > > The bug is still there, it is present if there is no navigation name > expression. > > The bug exists in Diagram, Table and Tree dialects > > org.eclipse.sirius.business.api.query.IdentifiedElementQuery.getLabel() > should be used instead of navDesc.getName(): > . line 236 of > OpenMenuContribution.buildOpenRepresentationActions(IMenuManager, > IInterpreter, RepresentationNavigationDescription, DRepresentationElement, > Session, EditPart, TransactionalEditingDomain) > . line 413 of > DTableMenuListener.buildOpenRepresentationActions(IMenuManager, > IInterpreter, RepresentationNavigationDescription, DRepresentationElement, > Session) > . line 333 of > DTreeMenuListener.buildOpenRepresentationActions(IMenuManager, IInterpreter, > RepresentationNavigationDescription, DRepresentationElement, Session) > > Note that for Diagram/Table/Tree creation description menu, the label is > already used > (org.eclipse.sirius.ui.tools.api.actions. > AbstractCreateRepresentationFromRepresentationCreationDescription.getText()). Thank you Maxime and in reply to your comment I propose the fix : https://git.eclipse.org/r/#/c/36102/ Cloned as bug #456341 to backport into Sirius 2.0.x. Merged as ed220ddbafbef8da7f87dc9d7d35634ee303e234 Verified on Sirius 3.0.0M6 Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |