mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
PY-22514, CPP-8763: Disable unneeded producers for plugins
using PyCharmInitialConfigurator * PyCharmInitialConfigurator has not been used for plugins. * It is now moved to python-community-plugin-core.xml to work with plugins as well
This commit is contained in:
@@ -76,6 +76,7 @@ import com.intellij.util.ui.tree.TreeUtil;
|
||||
import com.jetbrains.python.PythonLanguage;
|
||||
import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
|
||||
import com.jetbrains.python.inspections.PyPep8Inspection;
|
||||
import com.jetbrains.python.testing.universalTests.PyUniversalTestLegacyInteropKt;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -253,6 +254,11 @@ public class PyCharmEduInitialConfigurator {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
According to PyUniversalTestLegacyInteropKt we need to call "init"
|
||||
*/
|
||||
PyUniversalTestLegacyInteropKt.init(bus);
|
||||
}
|
||||
|
||||
private static void patchMainMenu() {
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
<interface-class>com.jetbrains.python.console.PythonConsoleRunnerFactory</interface-class>
|
||||
<implementation-class>com.jetbrains.python.console.PydevConsoleRunnerFactory</implementation-class>
|
||||
</component>
|
||||
<component>
|
||||
<implementation-class>com.jetbrains.python.PyCharmInitialConfigurator</implementation-class>
|
||||
<headless-implementation-class/>
|
||||
</component>
|
||||
</application-components>
|
||||
|
||||
</idea-plugin>
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,7 @@ import javax.swing.*;
|
||||
* @author yole
|
||||
*/
|
||||
@SuppressWarnings({"UtilityClassWithoutPrivateConstructor", "UtilityClassWithPublicConstructor"})
|
||||
public class PyCharmInitialConfigurator {
|
||||
public final class PyCharmInitialConfigurator {
|
||||
@NonNls private static final String DISPLAYED_PROPERTY = "PyCharm.initialConfigurationShown";
|
||||
|
||||
public PyCharmInitialConfigurator(MessageBus bus, final PropertiesComponent propertiesComponent, final FileTypeManager fileTypeManager) {
|
||||
Reference in New Issue
Block a user