Package com.intellij.openapi.fileEditor

Examples of com.intellij.openapi.fileEditor.FileEditorManager.openTextEditor()


                OpenFileDescriptor fd = new OpenFileDescriptor(project, pairFile);

                if (fd != null) {
                    FileEditorManager manager = FileEditorManager.
                            getInstance(project);
                    Editor e = manager.openTextEditor(fd, true);
                    if (e == null) {
                        error(project,"Editor is null");
                    }
                }
                else {
View Full Code Here


    private void openFileInEditor(@NotNull final Notification notification, @Nullable final VirtualFile file) {
        if (file == null) return;

        final FileEditorManager editorManager = FileEditorManager.getInstance(myProject);
        final Editor editor = editorManager.openTextEditor(new OpenFileDescriptor(myProject, file), true);
        final LogicalPosition logicalPosition = getLogicalPosition();

        if(editor != null && logicalPosition != null) {
            // Set correct caret position
            // See https://github.com/johnlindquist/open-source-plugins/blob/master/QuickJump/src/com/johnlindquist/quickjump/QuickJumpAction.java
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.