use of com.intellij.openapi.editor.impl.EditorFactoryImpl in project intellij-community by JetBrains.
the class ConsoleViewUtil method setupConsoleEditor.
@NotNull
public static EditorEx setupConsoleEditor(Project project, final boolean foldingOutlineShown, final boolean lineMarkerAreaShown) {
EditorFactory editorFactory = EditorFactory.getInstance();
Document document = ((EditorFactoryImpl) editorFactory).createDocument(true);
UndoUtil.disableUndoFor(document);
EditorEx editor = (EditorEx) editorFactory.createViewer(document, project);
setupConsoleEditor(editor, foldingOutlineShown, lineMarkerAreaShown);
return editor;
}
Aggregations