EditorEx () { EditorFactory editorFactory = EditorFactory.getInstance(); Document historyDocument = ((EditorFactoryImpl)editorFactory).createDocument(true); UndoUtil.disableUndoFor(historyDocument); return (EditorEx)editorFactory.createViewer(historyDocument, getProject(), EditorKind.CONSOLE); }