Closed Colbix closed 2 years ago
I am going to decouple the function extensionFilterFormat to have a list array as an argument. Currently the function is hard coded to loop through the filters list array.
Edit: I'm aware of the import of a Java FX class, must have accidently clicked import at some point. I'll update once have a chance.
Ok, I think I'm done. Tested with various setFileFilter configurations, with/without all files, and no extensions. If there is anything else you can think of please let me know.
Once this good then I'll also update the FileChooserFactory to setFileFilter. For multiple extensions I'm looking at selecting the first in alphabetical order unless you have another idea.
There are some issues with formatting (indentation, spaces before/after brackets, line breaks), but I think it's easier and faster if I just run the formatter over the code after merging.
Thanks for your contribution, appreciated!
Once this good then I'll also update the FileChooserFactory to setFileFilter. For multiple extensions I'm looking at selecting the first in alphabetical order unless you have another idea.
Yeah, alphabetical order seems fine.
Moved repetitive loops into their own respective functions added setSelectedExensionFilter function