mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
switch to declarative API for bundled color schemes in PyCharm
This commit is contained in:
@@ -87,8 +87,6 @@
|
||||
<stubIndex implementation="com.jetbrains.python.psi.stubs.PyVariableNameIndex"/>
|
||||
<stubIndex implementation="com.jetbrains.python.psi.stubs.PyInstanceAttributeIndex"/>
|
||||
|
||||
<bundledColorSchemesProvider implementation="com.jetbrains.python.PythonBundledColorSchemeProvider"/>
|
||||
|
||||
<declarationRangeHandler key="com.jetbrains.python.psi.PyClass"
|
||||
implementationClass="com.jetbrains.python.codeInsight.PyDeclarationRangeHandler"/>
|
||||
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.jetbrains.python;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.editor.colors.impl.BundledColorSchemesProvider;
|
||||
|
||||
/**
|
||||
* Adds bundled color schemes for PyCharm.
|
||||
* <br/>
|
||||
* User: dcheryasov
|
||||
* Date: 12/3/10 4:49 PM
|
||||
*/
|
||||
public class PythonBundledColorSchemeProvider implements BundledColorSchemesProvider {
|
||||
|
||||
public static final String[] PATHS = {
|
||||
"/colorSchemes/WarmNeon",
|
||||
"/colorSchemes/monokai",
|
||||
"/colorSchemes/Darcula",
|
||||
"/colorSchemes/twilight",
|
||||
};
|
||||
|
||||
@Override
|
||||
public String[] getBundledSchemesRelativePaths() {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) return null;
|
||||
return PATHS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDefaultSchemaExtensionPath() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user