Module jEdit

Class VFSFileChooserDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class VFSFileChooserDialog extends EnhancedDialog
Wraps the VFS browser in a modal dialog. Shows up when "File-Open" is used.
Version:
$Id: VFSFileChooserDialog.java 25073 2020-03-29 19:08:53Z kpouer $
Author:
Slava Pestov
See Also:
  • Constructor Details

    • VFSFileChooserDialog

      public VFSFileChooserDialog(View view, String path, int mode, boolean multipleSelection)
    • VFSFileChooserDialog

      public VFSFileChooserDialog(View view, String path, int mode, boolean multipleSelection, boolean autoshow)
      Constructs a new VFSFileChooserDialog. If authoshow is true, the dialog will be show automatically and the call will only return after the user disposes of the dialog.
      Since:
      jEdit 4.3pre7
    • VFSFileChooserDialog

      public VFSFileChooserDialog(Dialog parent, View view, String path, int mode, boolean multipleSelection, boolean autoshow)
      Constructs a new VFSFileChooserDialog. This version can specify a dialog as the parent instead of the view.
      Since:
      jEdit 4.3pre10
    • VFSFileChooserDialog

      public VFSFileChooserDialog(Frame parent, View view, String path, int mode, boolean multipleSelection, boolean autoshow)
      Constructs a new VFSFileChooserDialog. This version can specify a Frame as the parent instead of the view.
      Since:
      jEdit 4.3pre10
  • Method Details

    • getBrowser

      public VFSBrowser getBrowser()
      Returns the VFSBrowser instance used internally.
      Returns:
      the VFS browser used in the dialog
      Since:
      jEdit 4.3pre7
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window
    • ok

      public void ok()
      Specified by:
      ok in class EnhancedDialog
    • cancel

      public void cancel()
      Specified by:
      cancel in class EnhancedDialog
    • getSelectedFiles

      @Nonnull public String[] getSelectedFiles()
      Returns the selected files. If the browser is in VFSBrowser.OPEN_DIALOG mode, the file will have to be readable
      Returns:
      a String array containing paths, since jEdit 5.6pre1 it is never null (might be an empty array)