Task #2532 (assigned)
Opened 14 years ago
Last modified 14 years ago
BUG: Importer - adding a folder to the import queue — at Version 4
Reported by: | cblackburn | Owned by: | bwzloranger |
---|---|---|---|
Priority: | major | Milestone: | OMERO-Beta4.2 |
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-06-24 (12) |
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
Change History (5)
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)