Package com.intellij.openapi.fileEditor

Examples of com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateIn()


            Editor[] editors = EditorFactory.getInstance().getEditors(document);
            for (Editor editor : editors) {
                if (editor == selectedEditor) {
                    OpenFileDescriptor descriptor = (OpenFileDescriptor) EditSourceUtil.getDescriptor(this);
                    if (descriptor != null) {
                        descriptor.navigateIn(selectedEditor);
                        return;
                    }
                }
            }
        }
View Full Code Here


                        DatabaseEditableObjectFile databaseFile = sourceCodeFile.getDatabaseFile();
                        if (!editorManager.isFileOpen(databaseFile)) {
                            editorManager.openFile(databaseFile, requestFocus);
                        }
                        BasicTextEditor textEditor = EditorUtil.getFileEditor(databaseFile, virtualFile);
                        descriptor.navigateIn(textEditor.getEditor());
                        return;
                    }

                    Editor editor = editorManager.getSelectedTextEditor();
                    if (editor != null && virtualFile == DocumentUtil.getVirtualFile(editor)) {
View Full Code Here

                    FileEditor[] fileEditors = editorManager.getSelectedEditors();
                    for (FileEditor fileEditor : fileEditors) {
                        if (fileEditor instanceof DDLFileEditor) {
                            DDLFileEditor textEditor = (DDLFileEditor) fileEditor;
                            if (textEditor.getVirtualFile() == virtualFile) {
                                descriptor.navigateIn(textEditor.getEditor());
                                return;
                            }

                        }
                    }
View Full Code Here

            VirtualFile virtualFile = containingFile.getVirtualFile();
            if(virtualFile instanceof DatabaseContentFile) {
                Document document = DocumentUtil.getDocument(containingFile);
                Editor[] editors =  EditorFactory.getInstance().getEditors(document);
                OpenFileDescriptor descriptor = (OpenFileDescriptor) EditSourceUtil.getDescriptor(relevantPsiElement);
                if (descriptor != null) descriptor.navigateIn(editors[0]);

            } else{
                relevantPsiElement.navigate(requestFocus);
            }
        }
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.