public static AbstractShell getServerShell(IPythonNature nature, int id) throws IOException, JDTNotAvailableException, CoreException, MisconfigurationException, PythonNatureWithoutProjectException { return ShellsContainer.getServerShell(nature, id); }
/** * 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); }
/** stops all registered shells */ public static void shutdownAllShells() { ShellsContainer.shutdownAllShells(); }
/** * 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(); }
/** simple stop of a shell (it may be later restarted) */ public static void stopServerShell(IInterpreterInfo interpreter, int id) { ShellsContainer.stopServerShell(interpreter, id); }