Title: SwingObjectWidget: set values by string comparison by imagejan · Pull Request #87 · scijava/scijava-ui-swing · GitHub
Open Graph Title: SwingObjectWidget: set values by string comparison by imagejan · Pull Request #87 · scijava/scijava-ui-swing
X Title: SwingObjectWidget: set values by string comparison by imagejan · Pull Request #87 · scijava/scijava-ui-swing
Description: Fixes scijava/scijava-common#471. Previously, we were trying to set the JComboBox value with a new instance of the object. We don't always have the possibility to keep a list of the allowed choices for the current model, nor can we override the equals() method for the Objects of this widget instance. So we have to fall back to comparing all combobox items to the current value by their toString() and ObjectService.getName() strings.
Open Graph Description: Fixes scijava/scijava-common#471. Previously, we were trying to set the JComboBox value with a new instance of the object. We don't always have the possibility to keep a list of the allowed cho...
X Description: Fixes scijava/scijava-common#471. Previously, we were trying to set the JComboBox value with a new instance of the object. We don't always have the possibility to keep a list of the allowed...
Opengraph URL: https://github.com/scijava/scijava-ui-swing/pull/87
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e9ccea37-3b14-153f-36c3-01b9e70c16bb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D188:28AE23:15FCD21:1E4C415:696AA587 |
| html-safe-nonce | 5865622e4271d5c413040e12f3a7a6b3b65fedc07d082ec2d0a6698a945f3363 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTg4OjI4QUUyMzoxNUZDRDIxOjFFNEM0MTU6Njk2QUE1ODciLCJ2aXNpdG9yX2lkIjoiODk1MzI3NDUwMzI5NDI2NDcxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b9eade390ab1ed219cd35120b799eda1198b004806fde6aea2694ca68be95374 |
| hovercard-subject-tag | pull_request:2425572874 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/scijava/scijava-ui-swing/pull/87/files |
| twitter:image | https://avatars.githubusercontent.com/u/2033938?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2033938?s=400&v=4 |
| og:image:alt | Fixes scijava/scijava-common#471. Previously, we were trying to set the JComboBox value with a new instance of the object. We don't always have the possibility to keep a list of the allowed cho... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/scijava/scijava-ui-swing git https://github.com/scijava/scijava-ui-swing.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 19014728 |
| octolytics-dimension-repository_nwo | scijava/scijava-ui-swing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19014728 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-ui-swing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width