Wizard: make new wizard non-experimental
relates to #KT-38952
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
generator.title=Kotlin (Experimental Wizard)
|
||||
generator.title=Kotlin
|
||||
|
||||
error.nothing.selected=Select a module to configure
|
||||
error.generation=Project generation error
|
||||
|
||||
+1
-2
@@ -68,8 +68,7 @@ class NewProjectWizardModuleBuilder : EmptyModuleBuilder() {
|
||||
private const val INVALID_PROJECT_NAME_MESSAGE = "Invalid project name"
|
||||
}
|
||||
|
||||
override fun isAvailable(): Boolean =
|
||||
ExperimentalFeatures.NewWizard.isEnabled && isCreatingNewProject()
|
||||
override fun isAvailable(): Boolean = isCreatingNewProject()
|
||||
|
||||
private var wizardContext: WizardContext? = null
|
||||
private var finishButtonClicked: Boolean = false
|
||||
|
||||
@@ -142,10 +142,6 @@
|
||||
description="Enable new Java to Kotlin converter"
|
||||
defaultValue="true"
|
||||
restartRequired="false"/>
|
||||
<registryKey key="kotlin.experimental.project.wizard"
|
||||
description="Enable new Kotlin project wizard"
|
||||
defaultValue="true"
|
||||
restartRequired="false"/>
|
||||
|
||||
<fileEditorProvider implementation="org.jetbrains.kotlin.idea.scratch.ui.KtScratchFileEditorProvider"/>
|
||||
|
||||
|
||||
@@ -26,20 +26,8 @@ object ExperimentalFeatures {
|
||||
enabledByDefault = true
|
||||
)
|
||||
|
||||
val NewWizard = object : RegistryExperimentalFeature(
|
||||
title = KotlinBundle.message("configuration.feature.text.new.experimental.project.wizard"),
|
||||
registryKey = "kotlin.experimental.project.wizard",
|
||||
enabledByDefault = true
|
||||
) {
|
||||
override fun shouldBeShown(): Boolean {
|
||||
val platformVersion = PlatformVersion.getCurrent() ?: return true
|
||||
return platformVersion.platform != PlatformVersion.Platform.ANDROID_STUDIO
|
||||
}
|
||||
}
|
||||
|
||||
val allFeatures: List<ExperimentalFeature> = listOf(
|
||||
NewJ2k,
|
||||
NewWizard
|
||||
) + ExperimentalFeature.EP_NAME.extensionList
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user