Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » SWT FileDialog.setFilterPath Problem on Linux
SWT FileDialog.setFilterPath Problem on Linux [message #325386] Fri, 15 February 2008 23:27 Go to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
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
Grant Gayed is currently offline Grant GayedFriend
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
>
>
Previous Topic:Opening any Resources programmatically
Next Topic:[Viewers] Re: Widgets and style bits
Goto Forum:
  


Current Time: Sat Aug 17 11:32:01 GMT 2024

Powered by FUDForum. Page generated in 0.03091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top