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
Renaming elements in text editor does not work #359
Comments
Works in part with the fix for #360. Need to add renaming of package/classifier at the end of the declaration. |
What to do about references to component implementations when the component type is renamed?
|
Mark occurrences now marks type names in references to implementations. Rename refactoring is completely different. First need to create the linked editing regions for the editor, then adapt the actual renaming. |
And there are references from annexes and external languages into the core language. It is not clear how these need to be handled. |
Xtext 2.13 introduced improved support for semantic editing that may make it easier to implement component type renaming (see https://typefox.io/xtext-2-13-0-released-semantic-editing-made-easy). Postponing this issue until after we've updated to Photon with the newer Xtext. |
Look at IDependentElementsCalculator for renaming component implementations. |
There is a way to trigger subsequent renamings, see http://koehnlein.blogspot.com/2011/06/rename-refactoring-in-xtext-20.html |
It works with a dependent elements calculator. Declaration updates must also rename affected implementations, references are updated automatically. |
The AADL text editor has an operation to rename identifiers (context menu 'Rename Element' or Alt-Shift-r). This renames the identifier where it is declared but leaves all other occurrences unchanged.
child of #1371
depends on #1466
The text was updated successfully, but these errors were encountered: