Interface FileEditorManager

All Known Implementing Classes:
FileEditorManagerImpl

public interface FileEditorManager
Author:
Ildar
  • Method Details

    • openFile

      FileEditor openFile(Path file)
    • openRelativeFile

      void openRelativeFile(Path file)
    • openTextEditor

      void openTextEditor(OpenFileDescriptor fileDescriptor)
    • closeFile

      boolean closeFile(Path file)
      Close file editor
      Parameters:
      file - - filepath
      Returns:
      true if file was closed, false otherwise.
    • closeEditor

      boolean closeEditor(NativeFileEditor fileEditor)
      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

      boolean isOpen(Path file)