Class FileUtilities

    • Constructor Detail

      • FileUtilities

        public FileUtilities()
    • Method Detail

      • getInstance

        public static FileUtilities getInstance()
        The singleton.
        Returns:
        the singleton
      • selectFile

        public File selectFile​(String prefName,
                               String prefKey,
                               String fileExtension,
                               String fileType,
                               javafx.stage.Stage owner)
        Selects a file via filechooser dialog and remembers the decision in the user preferences.
        Parameters:
        prefName - the preferences name
        prefKey - the preferences key
        fileExtension - the filename extension (including the leading dot)
        fileType - the localized name of the file type
        owner - the dialog owner for the selection dialog, null if none
        Returns:
        the selected file, null if aborted