diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/GroovyBundle.properties b/plugins/groovy/src/org/jetbrains/plugins/groovy/GroovyBundle.properties index 2e49ab04cfe6..402c46f492df 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/GroovyBundle.properties +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/GroovyBundle.properties @@ -313,6 +313,8 @@ label.already.used=Label ''{0}'' is already in use break.outside.loop=The break statement with named labels is only allowed inside loops Constructor=Constructor +Getter=Getter +Setter=Setter groovy.like.library.found=Groovy library found groovy.like.library.found.text=Do you want to set up Groovy for module ''{0}'' \n\ with found library ''{1}'' (Groovy version {2})? @@ -364,4 +366,5 @@ multiline.slashy.strings.are.not.allowed.in.groovy.0=Multi-line slashy strings a slashy.strings.with.injections.are.not.allowed.in.groovy.0=Slashy strings with injetcions are not allowd in Groovy {0} constructor.call.is.ambiguous=Constructor call is ambiguous cannot.infer.argument.types=Cannot infer argument types -triple.is.not.expected.here='...' is not expected here \ No newline at end of file +triple.is.not.expected.here='...' is not expected here +Equals=Equals \ No newline at end of file diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/GrBaseGenerateAction.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/GrBaseGenerateAction.java index 0045785d74d1..0914ff7c4158 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/GrBaseGenerateAction.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/GrBaseGenerateAction.java @@ -23,7 +23,6 @@ import com.intellij.psi.PsiClass; import com.intellij.psi.PsiCompiledElement; import com.intellij.psi.PsiDocumentManager; import com.intellij.psi.PsiFile; -import org.jetbrains.plugins.groovy.GroovyBundle; import org.jetbrains.plugins.groovy.GroovyFileType; /** @@ -35,10 +34,6 @@ public abstract class GrBaseGenerateAction extends BaseGenerateAction { super(handler); } - protected String getCommandName() { - return GroovyBundle.message("Constructor"); - } - protected boolean isValidForFile(Project project, Editor editor, PsiFile file) { if (file instanceof PsiCompiledElement) return false; if (!GroovyFileType.GROOVY_FILE_TYPE.equals(file.getFileType())) return false; diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateGetterAction.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateGetterAction.java index 18baec3b3244..822616d69181 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateGetterAction.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateGetterAction.java @@ -16,6 +16,7 @@ package org.jetbrains.plugins.groovy.actions.generate.accessors; import com.intellij.codeInsight.generation.GenerateGetterHandler; +import org.jetbrains.plugins.groovy.GroovyBundle; import org.jetbrains.plugins.groovy.actions.generate.GrBaseGenerateAction; /** @@ -25,4 +26,9 @@ public class GroovyGenerateGetterAction extends GrBaseGenerateAction { public GroovyGenerateGetterAction() { super(new GenerateGetterHandler()); } + + @Override + protected String getCommandName() { + return GroovyBundle.message("Getter"); + } } diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateSetterAction.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateSetterAction.java index 8dffa153e25b..56ba06a98331 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateSetterAction.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/accessors/GroovyGenerateSetterAction.java @@ -16,6 +16,7 @@ package org.jetbrains.plugins.groovy.actions.generate.accessors; import com.intellij.codeInsight.generation.GenerateSetterHandler; +import org.jetbrains.plugins.groovy.GroovyBundle; import org.jetbrains.plugins.groovy.actions.generate.GrBaseGenerateAction; /** @@ -25,4 +26,9 @@ public class GroovyGenerateSetterAction extends GrBaseGenerateAction { public GroovyGenerateSetterAction() { super(new GenerateSetterHandler()); } + + protected String getCommandName() { + return GroovyBundle.message("Setter"); + } + } diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/constructors/GroovyGenerateConstructorAction.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/constructors/GroovyGenerateConstructorAction.java index 9d70ecb40a5e..c17ec67ee8e2 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/constructors/GroovyGenerateConstructorAction.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/constructors/GroovyGenerateConstructorAction.java @@ -15,6 +15,7 @@ */ package org.jetbrains.plugins.groovy.actions.generate.constructors; +import org.jetbrains.plugins.groovy.GroovyBundle; import org.jetbrains.plugins.groovy.actions.generate.GrBaseGenerateAction; /** @@ -25,4 +26,8 @@ public class GroovyGenerateConstructorAction extends GrBaseGenerateAction { public GroovyGenerateConstructorAction() { super(new GroovyGenerateConstructorHandler()); } + + protected String getCommandName() { + return GroovyBundle.message("Constructor"); + } } diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/equals/GroovyGenerateEqualsAction.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/equals/GroovyGenerateEqualsAction.java index 6fecc4bf024d..8e863d53fbde 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/equals/GroovyGenerateEqualsAction.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/equals/GroovyGenerateEqualsAction.java @@ -15,6 +15,7 @@ */ package org.jetbrains.plugins.groovy.actions.generate.equals; +import org.jetbrains.plugins.groovy.GroovyBundle; import org.jetbrains.plugins.groovy.actions.generate.GrBaseGenerateAction; /** @@ -25,4 +26,9 @@ public class GroovyGenerateEqualsAction extends GrBaseGenerateAction { public GroovyGenerateEqualsAction() { super(new GroovyGenerateEqualsHandler()); } + + @Override + protected String getCommandName() { + return GroovyBundle.message("Equals"); + } }