IDEA-282297 [NPW] Disabled old New Project Wizard node for Python

You can now create a Python project either via the New Project node or via framework-specific nodes: Django, Flask, FastAPI.

GitOrigin-RevId: 690c9f6571c91e8a60c12efe932dc9b7efafe0cd
This commit is contained in:
Andrey Vlasovskikh
2022-02-21 05:12:41 +03:00
committed by intellij-monorepo-bot
parent a2097ce5c6
commit b4031d33bd

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.module;
import com.intellij.ide.NewProjectWizardLegacy;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ide.util.projectWizard.SdkSettingsStep;
import com.intellij.ide.util.projectWizard.SettingsStep;
@@ -35,6 +36,11 @@ public class PythonModuleBuilder extends PythonModuleBuilderBase implements Sour
mySourcePaths.add(sourcePathInfo);
}
@Override
public boolean isAvailable() {
return NewProjectWizardLegacy.isAvailable();
}
@Override
public ModuleWizardStep modifyProjectTypeStep(@NotNull SettingsStep settingsStep) {
return new SdkSettingsStep(settingsStep, this, id -> PythonSdkType.getInstance() == id) {