Example #1
0
 public static AbstractShell getServerShell(IPythonNature nature, int id)
     throws IOException, JDTNotAvailableException, CoreException, MisconfigurationException,
         PythonNatureWithoutProjectException {
   return ShellsContainer.getServerShell(nature, id);
 }
Example #2
0
 /**
  * register a shell and give it an id
  *
  * @param nature the nature (which has the information on the interpreter we want to used)
  * @param id the shell id
  * @see #COMPLETION_SHELL
  * @see #OTHERS_SHELL
  * @param shell the shell to register
  */
 public static void putServerShell(IPythonNature nature, int id, AbstractShell shell) {
   ShellsContainer.putServerShell(nature, id, shell);
 }
Example #3
0
 /** stops all registered shells */
 public static void shutdownAllShells() {
   ShellsContainer.shutdownAllShells();
 }
Example #4
0
 /**
  * Restarts all the shells and clears any related cache.
  *
  * @return an error message if some exception happens in this process (an empty string means all
  *     went smoothly).
  */
 public static String restartAllShells() {
   return ShellsContainer.restartAllShells();
 }
Example #5
0
 /** simple stop of a shell (it may be later restarted) */
 public static void stopServerShell(IInterpreterInfo interpreter, int id) {
   ShellsContainer.stopServerShell(interpreter, id);
 }