All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JythonConsole extends ConsolePanel
See Also:
  • Constructor Details

  • Method Details

    • updateThirdPartyModules

      public void updateThirdPartyModules()
      Called when pylib/ is updated
    • updateScriptLibraries

      public void updateScriptLibraries(ScriptManager manager)
    • getPrompt

      protected String getPrompt()
      Specified by:
      getPrompt in class ConsolePanel
    • getBanner

      protected String getBanner()
      Description copied from class: ConsolePanel
      The banner shown when the console starts up.
      Specified by:
      getBanner in class ConsolePanel
    • closeInterpreter

      public void closeInterpreter()
    • reset

      public void reset()
      Description copied from class: ConsolePanel
      Re-init the console from scratch
      Overrides:
      reset in class ConsolePanel
    • enter

      protected void enter()
      Description copied from class: ConsolePanel
      Accepts the current line, stores it in history, and interprets it. If the command is complete, prints the prompt otherwise prints the in progress indicator.
      Overrides:
      enter in class ConsolePanel
    • getInProgressIndicator

      protected String getInProgressIndicator()
      Specified by:
      getInProgressIndicator in class ConsolePanel
    • interpret

      protected boolean interpret(String message) throws org.python.core.PyException
      Description copied from class: ConsolePanel
      Interprets a single line
      Specified by:
      interpret in class ConsolePanel
      Parameters:
      message - the message to interpret
      Returns:
      true if the code is not complete and needs more input from the user.
      Throws:
      org.python.core.PyException - for syntax errors
    • initKeyBindings

      protected void initKeyBindings(JTextComponent textPane)
      Overrides:
      initKeyBindings in class ConsolePanel
    • interrupt

      public void interrupt()
      Specified by:
      interrupt in class ConsolePanel
    • interpretMultiline

      public void interpretMultiline(String source)