mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-56885 Groovy: Refactor / Rename: Preview applies rename instead of opening preview
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ public class PropertyRenameHandler implements RenameHandler {
|
||||
|
||||
private void doRename(String newName, boolean searchInComments) {
|
||||
final RenameRefactoring rename = new JavaRenameRefactoringImpl(myProperty.getProject(), myProperty, newName, searchInComments, false);
|
||||
|
||||
rename.setPreviewUsages(isPreviewUsages());
|
||||
final PsiMethod setter = myProperty.getSetter();
|
||||
if (setter != null && !(setter instanceof GrAccessorMethod)) {
|
||||
final String setterName = PropertyUtil.suggestSetterName(newName);
|
||||
|
||||
Reference in New Issue
Block a user