mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[java-intentions] MoveClassFix: fix intention preview texts
IJ-CR-101639 GitOrigin-RevId: d5f362e14d86fa3ad2bfabf87cbd497aa247025f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
98987fe1b5
commit
a83eabb9eb
@@ -492,9 +492,9 @@ move.inner.class.command=Moving inner class {0}
|
||||
move.inner.class.to.another.class=&Move inner class {0} to another class
|
||||
move.inner.class.to.be.moved=Class to be moved
|
||||
move.inner.class.to.upper.level=Move &inner class {0} to upper level
|
||||
move.inner.class.to.upper.level.preview=Move inner class {0} to the top level of a package of your choice.
|
||||
move.inner.class.to.upper.level.or.another.class.preview=Move inner class {0} to the top level of a package of your choice or to an another class.
|
||||
move.class.to.new.file.or.make.inner.class.preview=Move class {0} to a new file in a package of your choice or convert it to an inner class of an existing one.
|
||||
move.inner.class.to.upper.level.preview=Move inner class ''{0}'' to the top level of a package of your choice.
|
||||
move.inner.class.to.upper.level.or.another.class.preview=Move inner class ''{0}'' to the top level of a package of your choice or to an another class.
|
||||
move.class.to.new.file.or.make.inner.class.preview=Move class ''{0}'' to a new file in a package of your choice or convert it to an inner class of an existing one.
|
||||
move.inner.class.to.upper.level.action.name=Move Inner Class to Upper Level\u2026
|
||||
move.instance.method.delegate.title=Move Instance Method\u2026
|
||||
move.instance.method.elements.header=Move instance method
|
||||
|
||||
@@ -16,6 +16,6 @@ public class InnerClassOnInterfaceInspectionTest extends LightJavaInspectionTest
|
||||
public void testPreview() {
|
||||
myFixture.configureByText("I.java", "interface I { interface Inn<caret>er { } }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Inner to the top level of a package of your choice or to an another class.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Inner' to the top level of a package of your choice or to an another class.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,6 @@ public class MultipleTopLevelClassesInFileInspectionTest extends LightJavaInspec
|
||||
public void testPreview() {
|
||||
myFixture.configureByText("X.java", "public class X {} class Y<caret> {}");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move class Y to a new file in a package of your choice or convert it to an inner class of an existing one.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move class 'Y' to a new file in a package of your choice or convert it to an inner class of an existing one.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,12 +23,12 @@ public class PackageVisibleInnerClassInspectionTest extends LightJavaInspectionT
|
||||
public void testPreviewStaticClass() {
|
||||
myFixture.configureByText("Outer.java", "public class Outer { static class N<caret>ested {} }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Nested to the top level of a package of your choice or to an another class.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Nested' to the top level of a package of your choice or to an another class.");
|
||||
}
|
||||
|
||||
public void testPreviewNonStaticClass() {
|
||||
myFixture.configureByText("Outer.java", "public class Outer { class In<caret>ner {} }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Inner to the top level of a package of your choice.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Inner' to the top level of a package of your choice.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,12 +24,12 @@ public class ProtectedInnerClassInspectionTest extends LightJavaInspectionTestCa
|
||||
public void testPreviewStaticClass() {
|
||||
myFixture.configureByText("Outer.java", "public class Outer { protected static class N<caret>ested {} }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Nested to the top level of a package of your choice or to an another class.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Nested' to the top level of a package of your choice or to an another class.");
|
||||
}
|
||||
|
||||
public void testPreviewNonStaticClass() {
|
||||
myFixture.configureByText("Outer.java", "public class Outer { protected class In<caret>ner {} }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Inner to the top level of a package of your choice.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Inner' to the top level of a package of your choice.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,12 +23,12 @@ public class PublicInnerClassInspectionTest extends LightJavaInspectionTestCase
|
||||
public void testPreviewStaticClass() {
|
||||
myFixture.configureByText("Outer.java", "public class Outer { public static class N<caret>ested {} }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Nested to the top level of a package of your choice or to an another class.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Nested' to the top level of a package of your choice or to an another class.");
|
||||
}
|
||||
|
||||
public void testPreviewNonStaticClass() {
|
||||
myFixture.configureByText("Outer.java", "public class Outer { public class In<caret>ner {} }");
|
||||
IntentionAction action = myFixture.findSingleIntention("Move class");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class Inner to the top level of a package of your choice.");
|
||||
myFixture.checkIntentionPreviewHtml(action, "Move inner class 'Inner' to the top level of a package of your choice.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user