Title: Add "Load from file..." option to ObjectWidget · Issue #380 · scijava/scijava-common · GitHub
Open Graph Title: Add "Load from file..." option to ObjectWidget · Issue #380 · scijava/scijava-common
X Title: Add "Load from file..." option to ObjectWidget · Issue #380 · scijava/scijava-common
Description: 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 achi...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/scijava/scijava-common/issues/380
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add \"Load from file...\" option to ObjectWidget","articleBody":"As discussed in https://github.com/imagej/imagej-common/issues/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`.\r\n\r\nThis can possibly be achieved by adding an additional object during the discovery of valid choices here:\r\nhttps://github.com/scijava/scijava-common/blob/560ad964a7a1e859edd4dbe4fc48d7d9e09523f2/src/main/java/org/scijava/widget/AbstractInputHarvester.java#L131-L139\r\n\r\nWe should display this option whenever we find an `IOPlugin` that can open objects of the target type, or convertible to the target type.\r\n\r\nHow can this be achieved? Maybe a custom converter `File` -\u003e anything that provides a suitable `IOPlugin`, but converters have to provide a specific output type, right? Maybe a custom implementation in `ObjectWidget`/`AbstractInputHarvester` is required?\r\n\r\nAlso, 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 the `ModuleItem#setValue()` call, or can we do this with a custom `PreprocessorPlugin`?\r\n\r\n(Just writing down some thoughts, before I forget.)\r\n","author":{"url":"https://github.com/imagejan","@type":"Person","name":"imagejan"},"datePublished":"2020-01-17T20:21:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/380/scijava-common/issues/380"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca4368a7-6c41-7dd8-e899-57997186ec65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8B8:1860A8:14D6AFF:1CD451B:696A9545 |
| html-safe-nonce | 134dff75581b6749924dddde9ad6c0c064864b10c471d67fe42977617ebdf74f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEI4OjE4NjBBODoxNEQ2QUZGOjFDRDQ1MUI6Njk2QTk1NDUiLCJ2aXNpdG9yX2lkIjoiODM3OTE5NjE1NjQ2NTAyNjM3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 800b4d3cbb6483bd109145486428ad7f1adb4fb0f21bdf15f467664041d7269a |
| hovercard-subject-tag | issue:551613872 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-common/380/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4a53d9967cca50b05eb126dc66fd602644b505c21ba0ac24b0b8d131d70a36c/scijava/scijava-common/issues/380 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4a53d9967cca50b05eb126dc66fd602644b505c21ba0ac24b0b8d131d70a36c/scijava/scijava-common/issues/380 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imagejan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3594497 |
| octolytics-dimension-repository_nwo | scijava/scijava-common |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3594497 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-common |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width