KotlinGradleModuleConfigurator: J2K
This commit is contained in:
+15
-27
@@ -14,40 +14,28 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.kotlin.idea.configuration;
|
package org.jetbrains.kotlin.idea.configuration
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.kotlin.resolve.TargetPlatform
|
||||||
import org.jetbrains.kotlin.resolve.TargetPlatform;
|
import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatform
|
||||||
import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatform;
|
|
||||||
|
|
||||||
public class KotlinGradleModuleConfigurator extends KotlinWithGradleConfigurator {
|
class KotlinGradleModuleConfigurator internal constructor() : KotlinWithGradleConfigurator() {
|
||||||
public static final String NAME = "gradle";
|
|
||||||
|
|
||||||
public static final String APPLY_KOTLIN = "apply plugin: 'kotlin'";
|
override val name: String
|
||||||
|
get() = NAME
|
||||||
|
|
||||||
@NotNull
|
override val targetPlatform: TargetPlatform
|
||||||
@Override
|
get() = JvmPlatform
|
||||||
public String getName() {
|
|
||||||
return NAME;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
override val presentableText: String
|
||||||
@Override
|
get() = "Gradle"
|
||||||
public TargetPlatform getTargetPlatform() {
|
|
||||||
return JvmPlatform.INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
override val applyPluginDirective: String
|
||||||
@Override
|
get() = APPLY_KOTLIN
|
||||||
public String getPresentableText() {
|
|
||||||
return "Gradle";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
companion object {
|
||||||
protected String getApplyPluginDirective() {
|
val NAME = "gradle"
|
||||||
return APPLY_KOTLIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
KotlinGradleModuleConfigurator() {
|
val APPLY_KOTLIN = "apply plugin: 'kotlin'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user