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

Implement an input widget for URIs #85

Open
ctrueden opened this issue Jul 23, 2024 · 2 comments
Open

Implement an input widget for URIs #85

ctrueden opened this issue Jul 23, 2024 · 2 comments

Comments

@ctrueden
Copy link
Member

Such URIs might be a file path (with implicit file:// prefix), so the Browse button is still useful. But when a non-file URI such as https://... or s3://... is given, it should not mangle it into a java.io.File.

A URIWidget interface in SciJava Common is straightforward; the trickier part is here in scijava-ui-swing, how to get all the same features as the current FileWidget, while minimizing copy-pasting of code. I would like to make an abstract SwingFileEtcWidget or some such, which still takes a generic parameter for data type, but has the common logic for the Browse button for picking files...

@ctrueden
Copy link
Member Author

ctrueden commented Jul 23, 2024

See also #84, which should be merged in a coordinated fashion as part of this refactoring. CC @tischi

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/scijava-gui-that-works-for-both-local-and-remote-storage/98313/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants