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.nothing.selected=Select a module to configure
|
||||||
error.generation=Project generation error
|
error.generation=Project generation error
|
||||||
|
|||||||
+1
-2
@@ -68,8 +68,7 @@ class NewProjectWizardModuleBuilder : EmptyModuleBuilder() {
|
|||||||
private const val INVALID_PROJECT_NAME_MESSAGE = "Invalid project name"
|
private const val INVALID_PROJECT_NAME_MESSAGE = "Invalid project name"
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun isAvailable(): Boolean =
|
override fun isAvailable(): Boolean = isCreatingNewProject()
|
||||||
ExperimentalFeatures.NewWizard.isEnabled && isCreatingNewProject()
|
|
||||||
|
|
||||||
private var wizardContext: WizardContext? = null
|
private var wizardContext: WizardContext? = null
|
||||||
private var finishButtonClicked: Boolean = false
|
private var finishButtonClicked: Boolean = false
|
||||||
|
|||||||
@@ -142,10 +142,6 @@
|
|||||||
description="Enable new Java to Kotlin converter"
|
description="Enable new Java to Kotlin converter"
|
||||||
defaultValue="true"
|
defaultValue="true"
|
||||||
restartRequired="false"/>
|
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"/>
|
<fileEditorProvider implementation="org.jetbrains.kotlin.idea.scratch.ui.KtScratchFileEditorProvider"/>
|
||||||
|
|
||||||
|
|||||||
@@ -26,20 +26,8 @@ object ExperimentalFeatures {
|
|||||||
enabledByDefault = true
|
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(
|
val allFeatures: List<ExperimentalFeature> = listOf(
|
||||||
NewJ2k,
|
NewJ2k,
|
||||||
NewWizard
|
|
||||||
) + ExperimentalFeature.EP_NAME.extensionList
|
) + ExperimentalFeature.EP_NAME.extensionList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user