switch to declarative API for bundled color schemes in PyCharm

This commit is contained in:
Dmitry Jemerov
2013-04-10 11:52:59 +02:00
parent 553598bbcf
commit 24e519827e
2 changed files with 0 additions and 33 deletions
@@ -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;
}
}