SWT FileDialog.setFilterPath Problem on Linux [message #325386] |
Fri, 15 February 2008 23:27 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Kenneth Evans, Jr.![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=evans%40aps.anl.gov) Messages: 77 Registered: July 2009 |
Member |
|
|
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 15:34 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Grant Gayed![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Grant_Gayed%40ca.ibm.com) Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
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.03091 seconds