mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IJP-756 new project wizard - hide old generators: groovy and gradle
GitOrigin-RevId: f43b9c9f702e914d35b00c1f0b068a8fe16923ce
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fe21245f9b
commit
cecbcb61e0
@@ -0,0 +1,10 @@
|
||||
// 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.intellij.ide;
|
||||
|
||||
import com.intellij.openapi.application.Experiments;
|
||||
|
||||
public final class NewProjectWizardLegacy {
|
||||
public static boolean isAvailable() {
|
||||
return !Experiments.getInstance().isFeatureEnabled("new.project.wizard");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2019 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 org.jetbrains.plugins.gradle.service.project.wizard;
|
||||
|
||||
import com.intellij.ide.NewProjectWizardLegacy;
|
||||
import com.intellij.ide.projectWizard.ProjectSettingsStep;
|
||||
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
|
||||
import com.intellij.ide.util.projectWizard.WizardContext;
|
||||
@@ -18,6 +19,11 @@ public final class InternalGradleModuleBuilder extends AbstractGradleModuleBuild
|
||||
return new ModuleWizardStep[]{new GradleStructureWizardStep(this, wizardContext)};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return NewProjectWizardLegacy.isAvailable();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public List<Class<? extends ModuleWizardStep>> getIgnoredSteps() {
|
||||
|
||||
@@ -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 org.jetbrains.plugins.groovy.config;
|
||||
|
||||
import com.intellij.ide.NewProjectWizardLegacy;
|
||||
import com.intellij.ide.util.projectWizard.JavaModuleBuilder;
|
||||
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
|
||||
import com.intellij.ide.util.projectWizard.SettingsStep;
|
||||
@@ -28,6 +29,11 @@ public final class GroovyAwareModuleBuilder extends JavaModuleBuilder {
|
||||
return ModuleWizardStep.EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return NewProjectWizardLegacy.isAvailable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNls String getBuilderId() {
|
||||
return "groovy";
|
||||
|
||||
Reference in New Issue
Block a user