Delete JRuby and Python framework detectors

They're confusing, and their reason for existence is much better served with "No Python/Ruby interpreter configured" editor notifications

GitOrigin-RevId: 4c6705d5aa61476dfaedcf0fe79f56caa2833823
This commit is contained in:
Dmitry Jemerov
2022-01-05 18:30:06 +01:00
committed by intellij-monorepo-bot
parent ff6d4508c4
commit e7511f7713
2 changed files with 1 additions and 26 deletions

View File

@@ -8,7 +8,6 @@
<newProjectWizard.language implementation="com.jetbrains.python.newProject.PythonNewProjectWizard"/>
<moduleType id="PYTHON_MODULE" implementationClass="com.jetbrains.python.module.PythonModuleType"/>
<facetType implementation="com.jetbrains.python.facet.PythonFacetType"/>
<framework.detector implementation="com.jetbrains.python.facet.PythonFacetType$PythonFrameworkDetector"/>
<frameworkSupport implementation="com.jetbrains.python.facet.PythonFrameworkSupportProvider"/>
<projectStructureDetector implementation="com.jetbrains.python.module.PyProjectStructureDetector"/>
<moduleConfigurationEditorProvider implementation="com.jetbrains.python.module.PythonModuleConfigurationEditorProvider"/>

View File

@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python.facet;
import com.intellij.facet.Facet;
@@ -62,28 +62,4 @@ public class PythonFacetType extends FacetType<PythonFacet, PythonFacetConfigura
public Icon getIcon() {
return PythonIcons.Python.Python;
}
public static class PythonFrameworkDetector extends FacetBasedFrameworkDetector<PythonFacet, PythonFacetConfiguration> {
public PythonFrameworkDetector() {
super("python");
}
@NotNull
@Override
public FacetType<PythonFacet, PythonFacetConfiguration> getFacetType() {
return PythonFacetType.getInstance();
}
@NotNull
@Override
public FileType getFileType() {
return PythonFileType.INSTANCE;
}
@NotNull
@Override
public ElementPattern<FileContent> createSuitableFilePattern() {
return FileContentPattern.fileContent();
}
}
}