Task #2532 (closed)
Opened 14 years ago
Closed 14 years ago
BUG: Importer - adding a folder to the import queue
Reported by: | cblackburn | Owned by: | bwzloranger |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.2.1 |
Component: | Import | Version: | n.a. |
Keywords: | n.a. | Cc: | jburel |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2010-07-29 (13) |
Description (last modified by cblackburn)
Highlighting a folder and clicking + results in an error dialog (image attached) despite there being importable files in the folder. (Individual file import works okay)
Here's a relevant extract from the log:
2010-06-25 11:09:58,488 1089834 [3-thread-1] DEBUG ome.formats.OMEROMetadataStoreClient - KeepAlive ping 2010-06-25 11:10:58,140 1149486 [entQueue-0] INFO me.formats.importer.gui.FileQueueHandler - Scheduling candidate calculations(9)=[] 2010-06-25 11:10:58,143 1149489 [entQueue-0] INFO me.formats.importer.gui.FileQueueHandler - Handling import containers(9)=[] 2010-06-25 11:10:58,497 1149843 [3-thread-1] DEBUG ome.formats.OMEROMetadataStoreClient - KeepAlive ping
Attachments (1)
Change History (13)
Changed 14 years ago by cblackburn
comment:1 Changed 14 years ago by bwzloranger
- Status changed from new to assigned
comment:2 Changed 14 years ago by bwzloranger
- This is a ubuntu only problem.
comment:3 Changed 14 years ago by cblackburn
I've been experimenting with the Importer GUI code and trying to see if thre is some known problem at the root of this. First of all I confirmed that getSelectedFiles() method of the file chooser returns an empty list when a folder (or folders) is selected.
The system look and feel on Unbuntu 9.10 is GTK. This Swing Doc suggests that GTK+ 2.2 or higher is needed. I think I have 2.0
This bug report, although old seems to hint at FILES_AND_DIRECTORIES being ignored as a setting with the GTK look and feel (I assume this is pre-2.2)
If I hack the code in FileQueueChooser? (and GuiImporter?)
+ String laf = UIManager.getCrossPlatformLookAndFeelClassName(); - String laf = UIManager.getSystemLookAndFeelClassName();
this results in the Metal look and feel being selected and then I can select folders without problem.
Obviously the Metal look and feel is completely different and would mess things up on other platforms.
comment:4 Changed 14 years ago by cblackburn
- Description modified (diff)
comment:5 Changed 14 years ago by bwzloranger
Yeah Colin I was pretty sure it was an implementation error with the LAF library in Ubuntu. Will need to discuss the best alternative option (either disable this feature in your version of Ubuntu or try to code around it somehow).
comment:6 Changed 14 years ago by bwzloranger
- Milestone changed from OMERO-Beta4.2 to OMERO-Beta4.2.1
- Priority changed from major to minor
- Sprint 2010-06-24 (12) deleted
Pushing forward to 4.2.1
comment:7 Changed 14 years ago by bwzloranger
- Milestone changed from OMERO-Beta4.2.1 to Work in Progress
- Sprint set to 2010-07-29 (13)
comment:8 Changed 14 years ago by bwzloranger
- Milestone changed from Work in Progress to OMERO-Beta4.2.1
- Sprint 2010-07-29 (13) deleted
comment:9 Changed 14 years ago by bwzloranger
comment:10 Changed 14 years ago by bwzloranger
- Sprint set to 2010-07-29 (13)
comment:11 Changed 14 years ago by bwzloranger
gtkjfilechooser added in r7676
comment:12 Changed 14 years ago by bwzloranger
- Resolution set to wontfix
- Status changed from assigned to closed
Upgrading to GTKJ does not resolve this issue and my other attempt to hack around the problem doesn't work either. This seems unfixable for the version of GTK used by Ubuntu 9.10, but since its a minor annoyance its a livable issue. Closing.