Editor (Document document, Project project) { // TODO: 2019-05-21 use line below to activate editor, when editing opportunity will be available //Editor editor = EditorFactory.getInstance().createEditor(document, project, EditorKind.MAIN_EDITOR); Editor editor = EditorFactory.getInstance().createViewer(document, project, EditorKind.MAIN_EDITOR); editor.getSettings().setLineMarkerAreaShown(false); editor.getSettings().setLineNumbersShown(false); editor.getSettings().setFoldingOutlineShown(false); editor.getContentComponent().setBorder(JBUI.Borders.emptyLeft(EDITOR_LINE_BEGINNING_INDENT)); if (editor instanceof EditorEx) { ((EditorEx)editor).setContextMenuGroupId(IdeActions.GROUP_EDITOR_POPUP); } else { LOG.warn("[Large File Editor Subsystem] com.intellij.largeFilesEditor.editor.EditorModel.createSpecialEditor:" + " 'editor' is not instance of EditorEx. Can't set proper context menu group id."); } // don't show PositionPanel for this editor, because it still can't work properly with the editor editor.putUserData(PositionPanel.DISABLE_FOR_EDITOR, new Object()); return editor; }