SWT FileDialog.setFilterPath Problem on Linux [message #325386] |
Fri, 15 February 2008 18:27  |
Eclipse User |
|
|
|
Hi,
I am using FileDialog.setFilterPath() using the value I got from a previous
FileDialog.getFilterPath(),
On Linux the FileDialog then opens in the directory above the specified one
(the one that _contains_ the specified path).
It works OK on Windows. (On the other hand, the Windows native widgets do
the right thing without using setFilterPath, so it is hard to tell). It
also works OK if I also specify a file name (but in real usage I wouldn't
know a file name to specify). I do note that if I specify an invalid file
name, then it opens in the CWD (user.dir) and ignores the specified path.
I have checked the logic and checked in the debugger that the correct values
are being passed, so it looks like a bug to me. However, I do not find any
mention of this problem using Google.
I would appreciate any information as to whether this happens for you and
also if it does _not_ happen for you.
Thanks,
-Ken
|
|
|
Re: SWT FileDialog.setFilterPath Problem on Linux [message #325471 is a reply to message #325386] |
Tue, 19 February 2008 10:34  |
Eclipse User |
|
|
|
I assume you're using eclipse/swt 3.3.1.1 or earlier, in which case you're
seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=81604 . This is fixed
in the 3.4 stream.
Grant
"Kenneth Evans" <evans@aps.anl.gov> wrote in message
news:fp5747$78t$1@build.eclipse.org...
> Hi,
>
> I am using FileDialog.setFilterPath() using the value I got from a
previous
> FileDialog.getFilterPath(),
>
> On Linux the FileDialog then opens in the directory above the specified
one
> (the one that _contains_ the specified path).
>
> It works OK on Windows. (On the other hand, the Windows native widgets do
> the right thing without using setFilterPath, so it is hard to tell). It
> also works OK if I also specify a file name (but in real usage I wouldn't
> know a file name to specify). I do note that if I specify an invalid file
> name, then it opens in the CWD (user.dir) and ignores the specified path.
>
> I have checked the logic and checked in the debugger that the correct
values
> are being passed, so it looks like a bug to me. However, I do not find
any
> mention of this problem using Google.
>
> I would appreciate any information as to whether this happens for you and
> also if it does _not_ happen for you.
>
> Thanks,
>
> -Ken
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03120 seconds