Skip to content

Add method to retrieve a list of files #273

Closed
@imagejan

Description

@imagejan

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions