Search in sources :

Example 1 with EditorFactoryImpl

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;
}
Also used : EditorEx(com.intellij.openapi.editor.ex.EditorEx) EditorFactoryImpl(com.intellij.openapi.editor.impl.EditorFactoryImpl) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

EditorEx (com.intellij.openapi.editor.ex.EditorEx)1 EditorFactoryImpl (com.intellij.openapi.editor.impl.EditorFactoryImpl)1 NotNull (org.jetbrains.annotations.NotNull)1