Fix Django console to work with the refactored Python console from #PR444
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 4 Oct 2016 12:59:22 +0000 (14:59 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 11 Oct 2016 02:29:27 +0000 (04:29 +0200)
python/educational-python/src/META-INF/PyCharmEduPlugin.xml
python/ide/src/META-INF/PyCharmCorePlugin.xml
python/ide/src/META-INF/pycharm-core.xml
python/src/com/jetbrains/python/console/PydevConsoleRunnerFactory.java
python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java

index 79f3dd061d98f17e3a68dfa49b7dca310125a3e0..1ab0655a25eaa2db2c2d9736d3f34f771ab36398 100644 (file)
     </component>
   </application-components>
 
-  <extensions defaultExtensionNs="com.intellij">
-    <internal_executor id="PyConsoleToolWindowExecutor" implementation="com.jetbrains.python.console.PyConsoleToolWindowExecutor"/>
-    <postStartupActivity implementation="com.jetbrains.python.console.PyConsoleStarter"/>
-
-  </extensions>
-
   <extensions defaultExtensionNs="com.intellij">
       <programRunner implementation="com.jetbrains.python.edu.debugger.PyEduDebugRunner"/>
       <executor implementation="com.jetbrains.python.edu.debugger.PyEduDebugExecutor" order="first,after run"/>
index 47ad96b0654579658acf44f6e8802ce67e7bbda2..e8a88bce634e5f8311bf17accc88a8de18f296b9 100644 (file)
@@ -13,8 +13,4 @@
     </component>
 
   </application-components>
-  <extensions defaultExtensionNs="com.intellij">
-    <internal_executor id="PyConsoleToolWindowExecutor" implementation="com.jetbrains.python.console.PyConsoleToolWindowExecutor"/>
-    <postStartupActivity implementation="com.jetbrains.python.console.PyConsoleStarter"/>
-  </extensions>
 </idea-plugin>
index 042067272baf4252a1a995ef7c60ed2894e138e5..3cb80f00d5d29ea9e27a8639f0645cedb3d78ea8 100644 (file)
@@ -76,6 +76,9 @@
     <renameHandler implementation="com.intellij.platform.renameProject.ProjectFolderRenameHandler"/>
 
     <!-- Console -->
+    <internal_executor id="PyConsoleToolWindowExecutor" implementation="com.jetbrains.python.console.PyConsoleToolWindowExecutor"/>
+    <postStartupActivity implementation="com.jetbrains.python.console.PyConsoleStarter"/>
+
 
     <directoryIndexExcludePolicy implementation="com.jetbrains.python.PyDirectoryIndexExcludePolicy"/>
 
index ffecb6ddb39c434ba6630222429710b8711eae5b..9046a494f0a0a3fba01aafda6147ed2b1efb40c2 100644 (file)
@@ -42,6 +42,7 @@ import java.util.Map;
  */
 public class PydevConsoleRunnerFactory extends PythonConsoleRunnerFactory {
   @Override
+  @NotNull
   public PydevConsoleRunnerImpl createConsoleRunner(@NotNull Project project,
                                                     @Nullable Module contextModule) {
     Pair<Sdk, Module> sdkAndModule = PydevConsoleRunner.findPythonSdkAndModule(project, contextModule);
@@ -125,6 +126,7 @@ public class PydevConsoleRunnerFactory extends PythonConsoleRunnerFactory {
     envs.put(PythonEnvUtil.IPYTHONENABLE, ipythonEnabled);
   }
 
+  @NotNull
   protected PydevConsoleRunnerImpl createConsoleRunner(Project project,
                                                        Sdk sdk,
                                                        String workingDir,
index 57b51c924ff884f93de28e7b6ba63eb5a46f2270..c8e2a0cab09215333ee5534ddd9053b052f039f6 100644 (file)
@@ -29,6 +29,8 @@ public abstract class PythonConsoleRunnerFactory {
   public static PythonConsoleRunnerFactory getInstance() {
     return ServiceManager.getService(PythonConsoleRunnerFactory.class);
   }
+
+  @NotNull
   public abstract PydevConsoleRunner createConsoleRunner(@NotNull final Project project,
                                                          @Nullable Module contextModule);
 }