| Summary: | EditingDomainServices fails to retrieve the adapter factory for some elements | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Cedric Brun <cedric.brun> | ||||||||||
| Component: | Core | Assignee: | Pierre-Charles David <pierre-charles.david> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | Julien Dupont <julien.dupont> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | julien.dupont, laurent.redor, maxime.porhel | ||||||||||
| Version: | unspecified | Keywords: | triaged | ||||||||||
| Target Milestone: | 4.1.0 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| See Also: |
https://git.eclipse.org/r/79281 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=700952c95dc0cd8c8682a43a23978aaab70c59ab |
||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 500077 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Cedric Brun
Do you have a reproduction case? Created attachment 263016 [details]
Projects to import in a workspace reproduce the issue
Created attachment 263017 [details]
screenshot of a diagram definition applied on Ecore
expected:
- every node should have a label computed from the label provider of the "EAttribute.eType" value
KO: the one having eType set with EString has no label whereas it should have the EString one.
Created attachment 263476 [details]
empty eType combo in EcoreTools
Another way to reproduce.
Install EcoreTools (the Neon release is fine)
EEF and Sirius nightly (including the old runtime which got a few fixes interesting for EcoreTools lately)
Click on en EAttribute
=> the auto-generated rich properties are displaying a combo for eType but it looks empty.
Simpler test:
EditingDomainServices svc = new EditingDomainServices();
EDataType eStringType = EcorePackage.Literals.ESTRING;
String text = svc.getLabelProviderText(eStringType);
Assert.assertEquals("EString [java.lang.String]", text);
fails with AssertionError: expected:<EString [java.lang.String]> but was:<null>
New Gerrit change created: https://git.eclipse.org/r/79281 Gerrit change https://git.eclipse.org/r/79281 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=700952c95dc0cd8c8682a43a23978aaab70c59ab Created attachment 263717 [details]
Screenshot after the fix
Fixed. See the screenshot for the result: both items have a proper label, and the eType combo is correctly filled (with items correctly displayed). Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details. |