FileDialogFactory

The PlacesDock is designed to be customisable, and an application may have special requirements when renaming, deleting, copying and opening files.

Some reasons for creating your own dialogs :

  • If a file has associated files (such as a thumbnail image of the file), then the delete dialog may give the option to delete these associated files too.

  • The default CopyFileDialog and RenameFileDialog do NOT allow the file extension to be changed.

  • The default DeleteFileDialog deletes the file permanently. It doesn't use the operating system's recycle bin.

Create a new implementation of FileDialogFactory, and use it with PlacesDock.fileDialogFactory.

Inheritors

Functions

Link copied to clipboard
open fun browseMenuItem(file: File): MenuItem?
Link copied to clipboard
open fun copyDialog(file: File): Dialog
Link copied to clipboard
open fun deleteDialog(file: File): Dialog
Link copied to clipboard
open fun renameDialog(file: File): Dialog
Link copied to clipboard
open fun terminalHereMenuItem(directory: File): MenuItem?