diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index bbfde4834df8..87279390d1c2 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -479,6 +479,11 @@ introduce.variable.prefer.statements=false introduce.variable.prefer.statements.description=If true, select line at caret if there is no selection on introduce; \ when false expressions chooser would be shown +# Comma separated list of commands to skip from manage.py +python.django.commandsToSkip= +# Comma separated list of commands to use native runner instead of PyCharm specific +python.django.commandsToUseNativeRunner= + show.method.base.class.in.java.file.structure=true vcs.log.empty.change.list.creation=false diff --git a/python/src/com/jetbrains/extenstions/RegistryValueExt.kt b/python/src/com/jetbrains/extenstions/RegistryValueExt.kt new file mode 100644 index 000000000000..3adce8948cc7 --- /dev/null +++ b/python/src/com/jetbrains/extenstions/RegistryValueExt.kt @@ -0,0 +1,24 @@ +/* + * Copyright 2000-2016 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.jetbrains.extenstions + +import com.intellij.openapi.util.registry.RegistryValue + + +/** + * @return list of values in case they are comma separated + */ +fun RegistryValue.asList() = this.asString().split(",") diff --git a/python/src/com/jetbrains/extenstions/package-info.java b/python/src/com/jetbrains/extenstions/package-info.java new file mode 100644 index 000000000000..8821aba82fdf --- /dev/null +++ b/python/src/com/jetbrains/extenstions/package-info.java @@ -0,0 +1,22 @@ +/* + * Copyright 2000-2016 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Extension methods for various classes. + * Methods are transparent for Kotlin, while in Java you must use following pattern: class MyClass has extensions in MyClassExtKt. + * @author Ilya.Kazakevich + */ +package com.jetbrains.extenstions; \ No newline at end of file