Add when branches (minor): 'with import' -> 'with * import'
Change name of quick-fix to more descriptive one
This commit is contained in:
@@ -40,7 +40,7 @@ class AddWhenRemainingBranchesFix(
|
|||||||
|
|
||||||
override fun getFamilyName() = text
|
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 {
|
override fun isAvailable(project: Project, editor: Editor?, file: KtFile): Boolean {
|
||||||
return isAvailable(element)
|
return isAvailable(element)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
|
|
||||||
package u
|
package u
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
|
|
||||||
package u
|
package u
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
enum class Foo {
|
enum class Foo {
|
||||||
A, B, C
|
A, B, C
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Foo.*
|
import Foo.*
|
||||||
|
|
||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
enum class Foo {
|
enum class Foo {
|
||||||
A, B, C
|
A, B, C
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import Foo.*
|
import Foo.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import Foo.*
|
import Foo.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import Foo.*
|
import Foo.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import Foo.*
|
import Foo.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import Foo.*
|
import Foo.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Add remaining branches with import" "true"
|
// "Add remaining branches with * import" "true"
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
import Baz.*
|
import Baz.*
|
||||||
import Foo.*
|
import Foo.*
|
||||||
|
|||||||
Reference in New Issue
Block a user