-
Notifications
You must be signed in to change notification settings - Fork 52
Add method to retrieve a list of files #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I gave it a shot and added
UPDATE: of course this is intended behavior, I simply forgot to check for null on |
In principle I think this is a great idea. As you suggest, we will need to add more method signatures to the File list parameter
File filteringWe cannot use One question is whether we want to limit our design to files here, or try to support |
@ctrueden wrote:
Would it be sufficient to have a
I would prefer a new |
I added the master...imagejan:multiple-file-input and added implementations for:
Remaining things (to be done and/or discussed):
|
I made some progress on the above-mentioned branches, and also added Drag-n-Drop functionality to the Currently I use a @ctrueden if you have comments on how to best fix this, I'd appreciate some advice. Should I simply use |
Two comments, before I forget: @ctrueden wrote:
Supporting locations would be great, but I currently limited the implementation to
Currently, any parameter of type
I think some substantial changes to the input harvesting are required to make it work on lists. I'd like to have a look at @gab1one's implementation before proceeding on this end. |
Resolved with #286. |
I would like to implement a
FilelistPreprocessor
that allows to choose a collection of files, such that commands can be annotated as:As
JFileChooser
can be set up to allow multiple file selection, I think it would be useful to add a methodFile[] chooseFiles(File file, String style)
toUIService
(and/orUserInterface
andLegacyUI
), 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)
The text was updated successfully, but these errors were encountered: