-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add "Load from file..." option to ObjectWidget #380
Comments
Having a Load from file... option for image inputs would avoid situations of poor user experience such as the one mentioned in this forum thread. /cc @frauzufall |
Maybe someone can thinking of a better way to phrase "A(n) X is required but none exists"? That message is pretty confusing, but I couldn't think of a better way to phrase it. "Please open a(n) X before performing this operation", perhaps? And then have some extensible aliasing mechanism for Java class to human-friendly name (e.g. |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/new-colocalization-cross-correlation-plugin-looking-for-feedback/49492/2 |
Just want to lend my support to a Load from file... option for image inputs. Particularly as I would love to make a user-friendly plugin for the GUI that also has simple headless support that works with files directly, and I imagine this would be a step in that direction (though I'm willing to be wrong on that, not very familiar with development for headless mode). |
When calling from macro or via the command line, SCIFIO's |
As discussed in imagej/imagej-common#71, it would be nice to have a Load from file... option whenever we show a choice dropdown for arbitrary objects (including, but not limited to, images) via the
ObjectWidget
.This can possibly be achieved by adding an additional object during the discovery of valid choices here:
scijava-common/src/main/java/org/scijava/widget/AbstractInputHarvester.java
Lines 131 to 139 in 560ad96
We should display this option whenever we find an
IOPlugin
that can open objects of the target type, or convertible to the target type.How can this be achieved? Maybe a custom converter
File
-> anything that provides a suitableIOPlugin
, but converters have to provide a specific output type, right? Maybe a custom implementation inObjectWidget
/AbstractInputHarvester
is required?Also, how can we achieve that
uiService.chooseFile()
is called (and the file is loaded) only when the input is actually selected and the module processed? Do we have to intercept theModuleItem#setValue()
call, or can we do this with a customPreprocessorPlugin
?(Just writing down some thoughts, before I forget.)
The text was updated successfully, but these errors were encountered: