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