diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/GroovyRefactoringBundle.properties b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/GroovyRefactoringBundle.properties index 664c14e41900..e7573a3ace29 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/GroovyRefactoringBundle.properties +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/GroovyRefactoringBundle.properties @@ -160,3 +160,4 @@ convert.to.java.refactoring.name=Convert to Java convert.to.java.can.work.only.with.groovy=Convert to Java refactoring work only with Groovy files files.to.be.converted=Files to be converted converting.files.to.java=Converting files to Java +rename.groovy.property=Rename &Groovy property diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/rename/PropertyRenameHandler.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/rename/PropertyRenameHandler.java index 1481315d94df..6332bd732707 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/rename/PropertyRenameHandler.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/rename/PropertyRenameHandler.java @@ -25,6 +25,7 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; import com.intellij.psi.PsiMember; import com.intellij.psi.PsiMethod; +import com.intellij.refactoring.lang.TitledHandler; import com.intellij.refactoring.rename.PsiElementRenameHandler; import com.intellij.refactoring.rename.RenameHandler; import org.jetbrains.annotations.NotNull; @@ -33,6 +34,7 @@ import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrField; import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrAccessorMethod; import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMethod; import org.jetbrains.plugins.groovy.lang.psi.util.GroovyPropertyUtils; +import org.jetbrains.plugins.groovy.refactoring.GroovyRefactoringBundle; import java.util.List; @@ -41,7 +43,7 @@ import static org.jetbrains.plugins.groovy.refactoring.rename.RenamePropertyUtil /** * @author ven */ -public class PropertyRenameHandler implements RenameHandler { +public class PropertyRenameHandler implements RenameHandler, TitledHandler { public boolean isAvailableOnDataContext(DataContext dataContext) { final PsiElement element = getElement(dataContext); if (element instanceof GrField && ((GrField)element).isProperty()) return true; @@ -83,4 +85,9 @@ public class PropertyRenameHandler implements RenameHandler { PsiElementRenameHandler.invoke(new PropertyForRename(result, propertyName, element.getManager()), project, element, editor); } + + @Override + public String getActionTitle() { + return GroovyRefactoringBundle.message("rename.groovy.property"); + } }