Replies: 2 comments
-
|
Hi Leo, we are reusing the edit module of sprotty for this. The corresponding code can be found here https://github.com/eclipse/sprotty/tree/master/src/features/edit. The mouse listener that's responsible for the initiating the rename process can be found in the edit-label.ts file. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
[Leo Knoll] great thanks, I'll have a look :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to work on the renaming attributes issue (eclipsesource/ecore-glsp#36).
My approach was to look how the renaming was done with classes. As far as I could see classes use LabeledNode and attributes use SLabelNode. I have found a lot of code how to change the looks of these views and also events like hovering but I just can't find where and how the implementation of the double click and renaming is done. LabeledNode implements WithEditableLable but when I remove the implementation the editing still works...
original thread by Leo Knoll
Beta Was this translation helpful? Give feedback.
All reactions