mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Groovy generate command names
This commit is contained in:
@@ -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
|
||||
triple.is.not.expected.here='...' is not expected here
|
||||
Equals=Equals
|
||||
-5
@@ -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;
|
||||
|
||||
+6
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+5
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user