I'm defining references and usages for my custom language plugin. Since I cannot rename those consistently I would like to disable the "rename refactoring" operation for these elements.
My initial approach was to have
return false, but this only prevents inline editing, not renaming in general. I still get a popup and default renaming.
My second guess was to implement a specific
but there seems to be no method that decides on renaming or not.
What's the proposed way of disabling rename refactoring? (Merely ignoring the rename operation in <element>.setName() seems broken.)