java - IntelliJ plugin invoke rename refactoring -
i'm writing plugin intellij couple of things. 1 of things performs rename of references if don't meet specific style guideline (think of style police officer checks code styles before saving). i'd following (from within existing anaction
):
- find usages of given identifier.
- for each usage, rename identifier different identifier.
clearly, exact workflow rename refactoring uses. so, question is: how invoke rename refactoring, given psielement
(or string
representation of identifier), within existing anaction
(i.e. want multiple things in succession, 1 of them, don't want user have go through refactoring menu each thing want perform).
try this:
refactoringfactory.getinstance(project).createrename()
Comments
Post a Comment