this.consoleListeners = new ListenerList(ListenerList.IDENTITY);
this.prompt = createConsolePrompt();
this.history = new ScriptConsoleHistory();
this.session = new ScriptConsoleSession();
addListener(this.session);
partitioner = new ScriptConsolePartitioner();
getDocument().setDocumentPartitioner(partitioner);
partitioner.connect(getDocument());