Skip to content
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

Open multiple XML/H5 selector dialog #110

Open
martinschorb opened this issue Mar 31, 2020 · 3 comments
Open

Open multiple XML/H5 selector dialog #110

martinschorb opened this issue Mar 31, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@martinschorb
Copy link
Collaborator

Hi,

this is still legacy from @tischi:
when I want to open files, the filter dropdown does not show "*.xml" but some cryptic java stuff...

image

@NicoKiaru
Copy link
Collaborator

@imagejan
Copy link

The file filter is currently implemented as an anonymous inner class in SwingFileWidget. I suppose the Swing UI is calling the filter's toString() method when creating the dropdown field, so that should probably be overridden.

There are a few more related issues that no one else has picked up so far:

If someone has time to dig into it, that would be awesome. I don't think it should be a big thing to change, it's just that the extension filter hasn't been extensively used by anyone so far.

I'm happy to give pointers to anyone willing to fix this.

@imagejan
Copy link

See also this forum topic by @tischi.

stefanhahmann added a commit to stefanhahmann/scijava-ui-swing that referenced this issue May 28, 2024
* Override FileFilter toString() method in SwingFileWidget so that it shows the extension(s) that are filtered by the file choose dialog instead of the standard toString() of the
* Related to
  * bigdataviewer/bigdataviewer-playground#110
  * https://forum.image.sc/t/scijava-command-file-extensions/29869/2
stefanhahmann added a commit to stefanhahmann/scijava-ui-swing that referenced this issue May 28, 2024
* Override FileFilter toString() method in SwingFileWidget so that it shows the extension(s) that are filtered by the file choose dialog instead of the standard toString() of the
* Related to
  * bigdataviewer/bigdataviewer-playground#110
  * https://forum.image.sc/t/scijava-command-file-extensions/29869/2
stefanhahmann added a commit to stefanhahmann/scijava-ui-swing that referenced this issue May 28, 2024
* Override FileFilter toString() method in SwingFileWidget so that it shows the extension(s) that are filtered by the file choose dialog instead of the standard toString() of the
* Related to
  * bigdataviewer/bigdataviewer-playground#110
  * https://forum.image.sc/t/scijava-command-file-extensions/29869/2
@NicoKiaru NicoKiaru added the enhancement New feature or request label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants