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

GLSP-1163: Fix GModelCreateNodeOperationHandler #68

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

tortmayr
Copy link
Contributor

  • Ensure that the element to delete is removed from its direct parent instead of always using the model root
  • Remove lookup of topLevel node or edge before deletion.
  • Ensure that edges of ports are also considered during dependants collection
  • Avoid adding of child elements to the dependants collection (as they are implicitly deleted when deleting the parent)
  • Fix to narrow typing in GModelIndex.getIncomingEdges

Fixes eclipse-glsp/glsp#1163

- Ensure that the element to delete is removed from its direct parent instead of always using the model root
- Remove lookup of topLevel node or edge before deletion.
- Ensure that edges of ports are also considered during dependants collection
- Avoid adding of child elements to the dependants collection (as they are implicitly deleted when deleting the parent)

Fixes eclipse-glsp/glsp#1163
- Fix to narrow typing in GModelIndex.getIncomingEdges
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works really well, even if we nest several categories and nodes, thank you Tobias!

@martin-fleck-at martin-fleck-at merged commit 1a0997e into main Nov 16, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Node-Server] Deleting of nested elements in categories does not work
2 participants