pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger L. Whitcomb" <Roger.Whitc...@actian.com>
Subject RE: SV: SV: SV: FileBrowserSheet#setSelectedFile() does not take effect
Date Wed, 12 Oct 2011 17:04:56 GMT
Okay, I've been in this area poking around for another fix, and I think I see the problem:
The "selectedFilesChanged" method in TerraFileBrowserSkin.java is being correctly called with
the selected file, but before the background task that updates the "fileTableView" data list
has completed.  So, the size of the list data is zero and the "files.indexOf(selectedFile)"
always returns -1.  So, probably this is better left as a fix in 2.1 (or 2.0.2).  What I think
has to happen is that the selected file needs to be saved somewhere and when the background
task completes it needs to do the selecting then.

Roger Whitcomb | Architect, Engineering | Roger.Whitcomb@actian.com| Actian Corp. | 500
Arguello Street | Suite 200 | Redwood City | CA | 94063 | USA  | +1 650-587-5596 | fax:
+1 650-587-5550

-----Original Message-----
From: Edvin Syse [mailto:es@syse.no] 
Sent: Friday, August 19, 2011 7:35 AM
To: user@pivot.apache.org
Subject: SV: SV: SV: SV: FileBrowserSheet#setSelectedFile() does not take effect

Thanks guys for looking into this :)

I will report back if I can pinpoint where the problem is.

-- Edvin

View raw message