renamed static import -> import static (IDEA-161681)

This commit is contained in:
Anna.Kozlova
2016-09-27 10:40:21 +02:00
parent ca385ad45e
commit e149c3fa7d
26 changed files with 25 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ public class StaticImportConstantFix extends StaticImportMemberFix<PsiField> {
@NotNull
@Override
protected String getBaseText() {
return "Static import constant";
return "Import static constant";
}
@NotNull

View File

@@ -15,12 +15,10 @@
*/
package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.JavaProjectCodeInsightSettings;
import com.intellij.codeInsight.daemon.QuickFixBundle;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.*;
import com.intellij.psi.impl.source.resolve.DefaultParameterTypeInferencePolicy;
import com.intellij.psi.infos.MethodCandidateInfo;
import com.intellij.psi.search.PsiShortNamesCache;
import com.intellij.psi.util.PsiFormatUtil;

View File

@@ -1,4 +1,4 @@
// "Static import constant..." "true"
// "Import static constant..." "true"
package foo;
import static foo.B.aaaaaaa;

View File

@@ -1,4 +1,4 @@
// "Static import constant 'foo.B.aaaaaaa'" "true"
// "Import static constant 'foo.B.aaaaaaa'" "true"
package foo;
import static foo.B.aaaaaaa;

View File

@@ -1,4 +1,4 @@
// "Static import constant..." "true"
// "Import static constant..." "true"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import constant 'foo.B.aaaaaaa'" "true"
// "Import static constant 'foo.B.aaaaaaa'" "true"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import constant 'foo.B.K'" "false"
// "Import static constant 'foo.B.K'" "false"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import constant 'foo.B.K'" "false"
// "Import static constant 'foo.B.K'" "false"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import constant 'foo.B.String'" "false"
// "Import static constant 'foo.B.String'" "false"
package foo;
public class X {

View File

@@ -1,6 +1,6 @@
import static java.lang.Integer.parseInt;
// "Static import method 'java.lang.Integer.parseInt'" "true"
// "Import static method 'java.lang.Integer.parseInt'" "true"
public class X {
{
<caret>parseInt("",10);

View File

@@ -1,4 +1,4 @@
// "Static import method..." "true"
// "Import static method..." "true"
package p;
import static p.FFF.myEqualTo;

View File

@@ -1,4 +1,4 @@
// "Static import method..." "true"
// "Import static method..." "true"
package foo;
import static foo.B.a;

View File

@@ -1,6 +1,6 @@
import static java.lang.String.format;
// "Static import method 'java.lang.String.format'" "true"
// "Import static method 'java.lang.String.format'" "true"
public class X {
{
format("");

View File

@@ -1,4 +1,4 @@
// "Static import method 'foo.B.aaaaaaa'" "true"
// "Import static method 'foo.B.aaaaaaa'" "true"
package foo;
import static foo.B.aaaaaaa;

View File

@@ -1,4 +1,4 @@
// "Static import method 'foo.B.aaaaaaa'" "true"
// "Import static method 'foo.B.aaaaaaa'" "true"
package foo;
import static foo.B.aaaaaaa;

View File

@@ -1,4 +1,4 @@
// "Static import method 'java.lang.Integer.parseInt'" "true"
// "Import static method 'java.lang.Integer.parseInt'" "true"
public class X {
{
<caret>parseInt("",10);

View File

@@ -1,4 +1,4 @@
// "Static import method..." "true"
// "Import static method..." "true"
package p;
public class X {
public void test() throws Exception {

View File

@@ -1,4 +1,4 @@
// "Static import method 'foo.B.aaaaaaa'" "false"
// "Import static method 'foo.B.aaaaaaa'" "false"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import method..." "true"
// "Import static method..." "true"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import method 'java.lang.Integer.parseInt'" "false"
// "Import static method 'java.lang.Integer.parseInt'" "false"
public class X {
{
this.<caret>parseInt("",10);

View File

@@ -1,4 +1,4 @@
// "Static import method 'java.lang.String.format'" "true"
// "Import static method 'java.lang.String.format'" "true"
public class X {
{
String.format("");

View File

@@ -1,4 +1,4 @@
// "Static import method 'foo.B.aaaaaaa'" "true"
// "Import static method 'foo.B.aaaaaaa'" "true"
package foo;
public class X {
{

View File

@@ -1,4 +1,4 @@
// "Static import method 'foo.B.aaaaaaa'" "true"
// "Import static method 'foo.B.aaaaaaa'" "true"
package foo;
public class X {

View File

@@ -1,4 +1,4 @@
// "Static import method 'java.util.Collections.emptyList'" "true"
// "Import static method 'java.util.Collections.emptyList'" "true"
import java.util.List;
import static java.util.Collections.emptyList;

View File

@@ -1,4 +1,4 @@
// "Static import method 'java.util.Collections.emptyList'" "true"
// "Import static method 'java.util.Collections.emptyList'" "true"
import java.util.List;
public class X {
List<String> get() {

View File

@@ -225,7 +225,7 @@ orderEntry.fix.add.library.to.classpath=Add library ''{0}'' to classpath
orderEntry.fix.family.add.library.to.classpath=Add library to classpath
orderEntry.fix.circular.dependency.warning=Adding dependency on module ''{0}'' will introduce circular dependency between modules ''{1}'' and ''{2}''.\nAdd dependency anyway?
orderEntry.fix.title.circular.dependency.warning=Circular Dependency Warning
static.import.method.text=Static import method
static.import.method.text=Import static method
static.import.method.choose.method.to.import=Choose Method to Import
add.library.title.dialog=Add ''{0}'' Library to Project