diff --git a/idea/src/org/jetbrains/kotlin/idea/quickfix/AddWhenRemainingBranchesFix.kt b/idea/src/org/jetbrains/kotlin/idea/quickfix/AddWhenRemainingBranchesFix.kt index 758d6818ccb..6161bc2bb8f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/quickfix/AddWhenRemainingBranchesFix.kt +++ b/idea/src/org/jetbrains/kotlin/idea/quickfix/AddWhenRemainingBranchesFix.kt @@ -40,7 +40,7 @@ class AddWhenRemainingBranchesFix( override fun getFamilyName() = text - override fun getText() = "Add remaining branches" + if (withImport) " with import" else "" + override fun getText() = "Add remaining branches" + if (withImport) " with * import" else "" override fun isAvailable(project: Project, editor: Editor?, file: KtFile): Boolean { return isAvailable(element) diff --git a/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.after.kt b/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.after.kt index e7183838c34..68770b141d1 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.after.kt +++ b/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.after.kt @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" package u diff --git a/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.before.Main.kt b/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.before.Main.kt index 052aca41d90..74386e7636d 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.before.Main.kt +++ b/idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.before.Main.kt @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" package u diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt b/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt index b027dd42c1d..cefde7f5ded 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME enum class Foo { A, B, C diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt.after b/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt.after index 8790a776a8e..e75492e0ffc 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt.after +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport1.kt.after @@ -1,6 +1,6 @@ import Foo.* -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME enum class Foo { A, B, C diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt b/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt index ed44e9ce5d4..e72ae5f241e 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME import Foo.* diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt.after b/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt.after index 49458a3f17e..434c7c8dcc3 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt.after +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport2.kt.after @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME import Foo.* diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt b/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt index 169c60ded44..18aff34f34c 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME import Foo.* diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt.after b/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt.after index ec1b5a091d2..3232e16e7a5 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt.after +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport3.kt.after @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME import Foo.* diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt b/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt index bdace9bc23f..368b3914336 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME import Foo.* diff --git a/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt.after b/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt.after index ea0fc2ebb2f..0b735aae769 100644 --- a/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt.after +++ b/idea/testData/quickfix/when/addRemainingBranchesEnumImport4.kt.after @@ -1,4 +1,4 @@ -// "Add remaining branches with import" "true" +// "Add remaining branches with * import" "true" // WITH_RUNTIME import Baz.* import Foo.*