Java com.intellij.openapi.fileEditor FileEditorManager fields, constructors, methods, implement or subclass

Example usage for Java com.intellij.openapi.fileEditor FileEditorManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.intellij.openapi.fileEditor FileEditorManager.

The text is from its open source code.

Field

Method

voidaddFileEditorManagerListener(@NotNull FileEditorManagerListener listener)
Adds specified listener
voidaddFileEditorManagerListener(@NotNull FileEditorManagerListener listener, @NotNull Disposable parentDisposable)
voidaddTopComponent(@NotNull final FileEditor editor, @NotNull final JComponent component)
Adds the specified component above the editor and paints a separator line below it.
voidcloseFile(@NotNull VirtualFile file)
Closes all editors opened for the file.
FileEditor @NotNull []getAllEditors(@NotNull VirtualFile file)
FileEditor @NotNull []getAllEditors()
FileEditor @NotNull []getEditors(@NotNull VirtualFile file)
FileEditorManagergetInstance(@NotNull Project project)
VirtualFile @NotNull []getOpenFiles()
ProjectgetProject()
Returns the project with which the file editor manager is associated.
FileEditorgetSelectedEditor(@NotNull VirtualFile file)
FileEditor @NotNull []getSelectedEditors()
VirtualFile @NotNull []getSelectedFiles()
EditorgetSelectedTextEditor()
booleanisFileOpen(@NotNull VirtualFile file)
ListopenEditor(@NotNull OpenFileDescriptor descriptor, boolean focusEditor)
Must be called from EDT.
FileEditor @NotNull []openFile(@NotNull VirtualFile file, boolean focusEditor, boolean searchForOpen)
Opens a file.
FileEditor @NotNull []openFile(@NotNull VirtualFile file, boolean focusEditor)
EditoropenTextEditor(@NotNull OpenFileDescriptor descriptor, boolean focusEditor)
Works as #openFile(VirtualFile,boolean) but forces opening of text editor (see TextEditor ).
voidremoveTopComponent(@NotNull final FileEditor editor, @NotNull final JComponent component)
voidsetSelectedEditor(@NotNull VirtualFile file, @NotNull String fileEditorProviderId)
Selects a specified file editor tab for the specified editor.