Closed
Description
I would like to implement a FilelistPreprocessor
that allows to choose a collection of files, such that commands can be annotated as:
@Parameter
File[] fileList
As JFileChooser
can be set up to allow multiple file selection, I think it would be useful to add a method File[] chooseFiles(File file, String style)
to UIService
(and/or UserInterface
and LegacyUI
), but I fear that changing the interface would entangle quite some changes to the implementing classes downstream, so I wanted to ask about opinions.
@ctrueden would you consider this a useful addition?
Considering the possible styles, I think it would only make sense for open and directory style dialogs, not for save.
Also, this would allow to add some more useful methods that allow providing default filters:
File chooseFile(File file, String style, javax.swing.filechooser.FileFilter[] filterList)
File[] chooseFiles(File file, String style, javax.swing.filechooser.FileFilter[] filterList)
Metadata
Metadata
Assignees
Labels
No labels