Add intention to introduce import alias
#KT-16118 Fixed #KT-30007 Fixed
This commit is contained in:
@@ -1361,6 +1361,11 @@
|
||||
<category>Kotlin</category>
|
||||
</intentionAction>
|
||||
|
||||
<intentionAction>
|
||||
<className>org.jetbrains.kotlin.idea.intentions.IntroduceImportAliasIntention</className>
|
||||
<category>Kotlin</category>
|
||||
</intentionAction>
|
||||
|
||||
<intentionAction>
|
||||
<className>org.jetbrains.kotlin.idea.intentions.RemoveSingleExpressionStringTemplateIntention</className>
|
||||
<category>Kotlin</category>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import com.test.api1.data.Movie as Movie1
|
||||
|
||||
class Test(){
|
||||
fun test(){
|
||||
val m = <spot>Movie1</spot>()
|
||||
}
|
||||
fun test2(){
|
||||
val m = Movie1()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import com.test.api1.data.Movie
|
||||
|
||||
class Test(){
|
||||
fun test(){
|
||||
val m = <spot>Movie</spot>()
|
||||
}
|
||||
fun test2(){
|
||||
val m = Movie()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention creates a import alias for the import.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user