LazyRunConfigurationProducer — python (flask)

This commit is contained in:
Vladimir Krivosheev
2018-12-13 16:50:38 +01:00
parent ab06924f57
commit 549f20e85f
3 changed files with 11 additions and 5 deletions
@@ -19,6 +19,10 @@ import org.jetbrains.annotations.Nullable;
* @author yole
*/
public abstract class JavaRunConfigurationProducerBase<T extends ModuleBasedConfiguration> extends RunConfigurationProducer<T> {
/**
* @deprecated Override {@link #getConfigurationFactory()}.
*/
@Deprecated
protected JavaRunConfigurationProducerBase(ConfigurationFactory configurationFactory) {
super(configurationFactory);
}
@@ -28,7 +32,7 @@ public abstract class JavaRunConfigurationProducerBase<T extends ModuleBasedConf
*/
@Deprecated
protected JavaRunConfigurationProducerBase(@NotNull ConfigurationType configurationType) {
this(configurationType.getConfigurationFactories()[0]);
super(configurationType.getConfigurationFactories()[0]);
}
protected JavaRunConfigurationProducerBase() {
@@ -44,6 +44,10 @@ public abstract class RunConfigurationProducer<T extends RunConfiguration> {
private final ConfigurationFactory myConfigurationFactory;
/**
* @deprecated Use {@link LazyRunConfigurationProducer}.
*/
@Deprecated
protected RunConfigurationProducer(@NotNull ConfigurationFactory configurationFactory) {
myConfigurationFactory = configurationFactory;
}
@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 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.
*/
// Copyright 2000-2018 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.run;
import com.intellij.execution.configurations.ConfigurationFactory;
@@ -19,7 +17,7 @@ abstract public class AbstractServerPythonRunConfiguration<T extends AbstractSer
@NonNls private static final String LAUNCH_JAVASCRIPT_DEBUGGER = "launchJavascriptDebuger";
private boolean myLaunchJavascriptDebugger;
public AbstractServerPythonRunConfiguration(final Project project, final ConfigurationFactory factory) {
public AbstractServerPythonRunConfiguration(@NotNull Project project, @NotNull ConfigurationFactory factory) {
super(project, factory);
}