this is probably very simple but as a beginner I haven't found an answer yet. I want to add the following feature to my editor: One marks some elements there, right clicks a box comes up where one can type a name and then the elements get automatically renamed following a certain structure.
So I add an event for the outline and from there I have to access the elements marked.
Now, my problem is how do I get the elements marked in the outline?
Do you mean the "DefaultRenameHandler" by the existing rename feature? If so, I tried to reuse code from it but then get a "discouraged access" warning. Seemingly, I'm doing something wrong...
I managed to get which elements in the outline i.e. which EObjectNodes are selected. But how can I tell Xtext to refactor them? During my search with google I found something but again I get the "discouraged access" warnings: