Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Related Elements" view crashes when using dynamic instances (e.g. domain instances) #1716

Closed
pcdavid opened this issue Feb 16, 2023 · 1 comment · Fixed by #1739
Closed

Comments

@pcdavid
Copy link
Member

pcdavid commented Feb 16, 2023

  1. Create a domain model with two entities Parent and Child, with a containment relationship beween them.
  2. In another project, create a instance of Parent, add a Child in it.
  3. Select the Parent.
  4. Open the "Related Elements" view in the right panel.

Exception while fetching data (/relatedElementsEvent) : The string resource '_UI_Parent_children_feature' could not be located

CurrentTreeProvider.getContainmentReferenceLabel(EObject, EReference) (and maybe other providers) do some EMF.Edit-specific magic to get the label of the containment feature which breaks for domain instances.

@pcdavid
Copy link
Member Author

pcdavid commented Feb 20, 2023

The exception above is actually one of many. Several parts of the 3 {Current,Incoming,Outgoing}TreeProvider break/incorrectly return null on dynamic instances.

pcdavid added a commit that referenced this issue Feb 20, 2023
Bug: #1716
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
@pcdavid pcdavid linked a pull request Feb 20, 2023 that will close this issue
39 tasks
@pcdavid pcdavid added this to the 2023.3.0 milestone Feb 20, 2023
@sbegaudeau sbegaudeau modified the milestones: 2023.3.0, 2023.4.0 Feb 23, 2023
sbegaudeau pushed a commit that referenced this issue Feb 24, 2023
Bug: #1716
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
sbegaudeau pushed a commit that referenced this issue Feb 24, 2023
Bug: #1716
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
sbegaudeau pushed a commit that referenced this issue Feb 27, 2023
Bug: #1716
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants