Package com.intellij.openapi.fileEditor

Examples of com.intellij.openapi.fileEditor.TextEditor


                                if (activeConnection == connectionHandler) {
                                    FileEditor[] fileEditors = fileEditorManager.getEditors(openFile);
                                    for (FileEditor fileEditor : fileEditors) {
                                        Editor editor = null;
                                        if (fileEditor instanceof TextEditor) {
                                            TextEditor textEditor = (TextEditor) fileEditor;
                                            editor = textEditor.getEditor();
                                        }
                                        else if (fileEditor instanceof BasicTextEditor) {
                                            BasicTextEditor textEditor = (BasicTextEditor) fileEditor;
                                            editor = textEditor.getEditor();
                                        }

                                        if (editor != null) {
                                            DocumentUtil.refreshEditorAnnotations(editor);
                                        }
View Full Code Here


        for (FileEditor fileEditor : selectedEditors) {
            if (fileEditor instanceof BasicTextEditor) {
                BasicTextEditor textEditor = (BasicTextEditor) fileEditor;
                predefinedText = textEditor.getEditor().getSelectionModel().getSelectedText();
            } else if (fileEditor instanceof TextEditor) {
                TextEditor textEditor = (TextEditor) fileEditor;
                predefinedText = textEditor.getEditor().getSelectionModel().getSelectedText();
            }
            if (isValidPredefinedText(predefinedText)) {
                break;
            } else {
                predefinedText = null;
View Full Code Here

    private Editor openTextEditor(Project project, VirtualFile virtualFile) {
      Editor editor = null;
      FileEditor[] fileEditors = FileEditorManager.getInstance(project).openFile(virtualFile, true);
      for (FileEditor fileEditor : fileEditors) {
        if (fileEditor instanceof TextEditor) {
          TextEditor textEditor = (TextEditor) fileEditor;
          editor = textEditor.getEditor();
        }
      }
      return editor;
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.fileEditor.TextEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.