Interface FileEditorManager
- All Known Implementing Classes:
FileEditorManagerImpl
public interface FileEditorManager
- Author:
- Ildar
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAsks to save unsaved filesbooleanbooleancloseEditor(NativeFileEditor fileEditor) Close file editorbooleanClose file editorPath[]booleanvoidopenRelativeFile(Path file) voidopenTextEditor(OpenFileDescriptor fileDescriptor)
-
Method Details
-
openFile
-
openRelativeFile
-
openTextEditor
-
closeFile
Close file editor- Parameters:
file- - filepath- Returns:
trueif file was closed,falseotherwise.
-
closeEditor
Close file editor- Parameters:
fileEditor- - editor to close- Returns:
trueif file was closed,falseotherwise.
-
closeAllEditors
boolean closeAllEditors() -
askToSaveUnsavedFiles
boolean askToSaveUnsavedFiles()Asks to save unsaved files- Returns:
falseif operation was cancelled,trueotherwise
-
getSelectedEditor
NativeFileEditor getSelectedEditor() -
getSelectedFile
Path getSelectedFile() -
getAllEditors
Set<NativeFileEditor> getAllEditors()- Returns:
- Все открытые эдиторы
-
getOpenFiles
Path[] getOpenFiles()- Returns:
- Все открытые файлы
-
isOpen
-