diff options
Diffstat (limited to 'python/src/META-INF')
-rw-r--r-- | python/src/META-INF/PyCharmCorePlugin.xml | 2 | ||||
-rw-r--r-- | python/src/META-INF/pycharm-community.xml | 11 | ||||
-rw-r--r-- | python/src/META-INF/pycharm-core.xml | 10 | ||||
-rw-r--r-- | python/src/META-INF/python-core.xml | 19 |
4 files changed, 24 insertions, 18 deletions
diff --git a/python/src/META-INF/PyCharmCorePlugin.xml b/python/src/META-INF/PyCharmCorePlugin.xml index a250bdc539d7..99a39a1d0cc7 100644 --- a/python/src/META-INF/PyCharmCorePlugin.xml +++ b/python/src/META-INF/PyCharmCorePlugin.xml @@ -1,4 +1,4 @@ <idea-plugin version="2" xmlns:xi="http://www.w3.org/2001/XInclude"> - <xi:include href="/META-INF/pycharm-core.xml" xpointer="xpointer(/idea-plugin/*)"/> + <xi:include href="/META-INF/pycharm-community.xml" xpointer="xpointer(/idea-plugin/*)"/> <xi:include href="/META-INF/python-core.xml" xpointer="xpointer(/idea-plugin/*)"/> </idea-plugin> diff --git a/python/src/META-INF/pycharm-community.xml b/python/src/META-INF/pycharm-community.xml new file mode 100644 index 000000000000..68518574169d --- /dev/null +++ b/python/src/META-INF/pycharm-community.xml @@ -0,0 +1,11 @@ +<idea-plugin version="2" xmlns:xi="http://www.w3.org/2001/XInclude"> + <!-- Components and extensions declared in this file work ONLY in PyCharm, not in Python plugin. --> + <xi:include href="/META-INF/pycharm-core.xml" xpointer="xpointer(/idea-plugin/*)"/> + + <application-components> + <component> + <interface-class>com.jetbrains.python.console.PythonConsoleRunnerFactory</interface-class> + <implementation-class>com.jetbrains.python.console.PythonToolWindowConsoleRunnerFactory</implementation-class> + </component> + </application-components> +</idea-plugin> diff --git a/python/src/META-INF/pycharm-core.xml b/python/src/META-INF/pycharm-core.xml index 13ba05db63f0..4732ad084b32 100644 --- a/python/src/META-INF/pycharm-core.xml +++ b/python/src/META-INF/pycharm-core.xml @@ -24,6 +24,12 @@ </component> </project-components> + <project-components> + <component> + <implementation-class>com.jetbrains.python.console.PythonConsoleToolWindow</implementation-class> + </component> + </project-components> + <module value="com.intellij.modules.xml"/> <extensions defaultExtensionNs="com.intellij"> @@ -75,6 +81,10 @@ <renameHandler implementation="com.intellij.platform.renameProject.RenameProjectHandler"/> <renameHandler implementation="com.intellij.platform.renameProject.ProjectFolderRenameHandler"/> + + <!-- Console --> + <toolWindow id="Python Console" anchor="bottom" icon="PythonIcons.Python.PythonConsoleToolWindow" + factoryClass="com.jetbrains.python.console.PythonConsoleToolWindowFactory" secondary="false"/> </extensions> <actions> diff --git a/python/src/META-INF/python-core.xml b/python/src/META-INF/python-core.xml index a27eb44ae3af..292237aac6ac 100644 --- a/python/src/META-INF/python-core.xml +++ b/python/src/META-INF/python-core.xml @@ -529,11 +529,6 @@ <moduleService serviceInterface="com.jetbrains.python.packaging.PyPackageRequirementsSettings" serviceImplementation="com.jetbrains.python.packaging.PyPackageRequirementsSettings"/> - <!-- Console --> - <toolWindow id="Python Console" anchor="bottom" icon="" - factoryClass="com.jetbrains.python.console.PythonConsoleToolWindowFactory" secondary="false"/> - - </extensions> <extensionPoints> @@ -621,12 +616,6 @@ </component> </project-components> - <project-components> - <component> - <implementation-class>com.jetbrains.python.console.PythonConsoleToolWindow</implementation-class> - </component> - </project-components> - <actions> <group id="PyTypeHierarchyPopupMenu"> <reference ref="TypeHierarchyBase.BaseOnThisType"/> @@ -655,11 +644,7 @@ <reference ref="CompareFileWithEditor"/> </group> - <action id="com.jetbrains.python.console.RunPythonConsoleAction" - class="com.jetbrains.python.console.RunPythonConsoleAction" - text="Run Python Console..." description="Allows to quickly run Python console"> - <add-to-group group-id="ToolsMenu" anchor="last"/> - </action> + <action id="com.jetbrains.python.console.PyOpenDebugConsoleAction" class="com.jetbrains.python.console.PyOpenDebugConsoleAction" @@ -669,7 +654,7 @@ <action id="ExecuteInPyConsoleAction" - class="com.jetbrains.python.actions.ExecuteInConsoleAction" + class="com.jetbrains.python.actions.PyExecuteSelectionAction" text="Execute selection in console" description="Executes selected code fragment in Python/Django console"> <add-to-group group-id="EditorPopupMenu" anchor="before" relative-to-action="CompareClipboardWithSelection"/> |