And you are sure that the selected file actually lives in the selected root 
directory?

On Aug 19, 2011, at 9:17 AM, Edvin Syse wrote:

> No it is not. Also, setRootDirectory() works fine.
> 
>> -----Opprinnelig melding-----
>> Fra: Camilo Casadiego [mailto:[email protected]]
>> Sendt: 19. august 2011 15:15
>> Til: [email protected]
>> Emne: RE: SV: FileBrowserSheet#setSelectedFile() does not take effect
>> 
>> I'm new in pivot....but cant' it be a chroot problem? I mean, the app
>> starts with the relative location of where its launched...when you make
>> debug which is the actual route you have into FileBrowserSheet object??
>> 
>> Cordialmente,
>> 
>> 
>> Camilo Casadiego Espitia
>> Arquitecto de SW
>> A + 57 1 6393000
>>  [email protected]
>> c http://www.adv.com.co
>> Carrera 11 No. 93 - 53 P7
>> Bogotá - Colombia
>> 
>> 
>> 
>> -----Mensaje original-----
>> De: Greg Brown [mailto:[email protected]]
>> Enviado el: Friday, August 19, 2011 7:51 AM
>> Para: [email protected]
>> Asunto: Re: SV: FileBrowserSheet#setSelectedFile() does not take effect
>> 
>> Does the sheet actually go to the right directory when you call
>> setRootDirectory()?
>> 
>> On Aug 19, 2011, at 8:40 AM, Edvin Syse wrote:
>> 
>>> That's the first thing i tried actually :) Same result.
>>> 
>>>> -----Opprinnelig melding-----
>>>> Fra: Greg Brown [mailto:[email protected]]
>>>> Sendt: 19. august 2011 14:39
>>>> Til: [email protected]
>>>> Emne: Re: FileBrowserSheet#setSelectedFile() does not take effect
>>>> 
>>>> Try calling setRootDirectory() with the parent directory of the file you
>>>> want to select.
>>>> 
>>>> On Aug 19, 2011, at 8:20 AM, Edvin Syse wrote:
>>>> 
>>>>> I want to select a spesific  folder after the sheet is opened, but
>> nothing
>>>> is selected:
>>>>> 
>>>>> FileBrowserSheet browser = new
>>>> FileBrowserSheet(FileBrowserSheet.Mode.SAVE_TO);
>>>>> browser.getWindowStateListeners().add(new
>>>> WindowStateListener.Adapter() {
>>>>>   public void windowOpened(Window window) {
>>>>>                   browser.setSelectedFile(lastTarget);
>>>>>   }
>>>>> });
>>>>> browser.open(...)
>>>>> 
>>>>> FileBrowserSheet. selectedFiles is updated with the selection, and
>>>> selectedFilesChanged is fired. Any idea what's wrong?
>>>>> 
>>>>> -- Edvin
>>> 
> 

Reply via email to