Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Stupid FileDialog question
Stupid FileDialog question [message #462058] Wed, 05 October 2005 13:40 Go to next message
Mark Victory is currently offline Mark VictoryFriend
Messages: 133
Registered: July 2009
Senior Member
How do I get the FileDialog to return full paths for the selected file(s)?
getFileNames( ) is returning me only the file name not the full path?

Thanks,
Mark
Re: Stupid FileDialog question [message #462060 is a reply to message #462058] Wed, 05 October 2005 14:04 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello Mark,

> How do I get the FileDialog to return full paths for the selected
> file(s)? getFileNames( ) is returning me only the file name not the
> full path?
>
> Thanks,
> Mark

Try:
String name = dialog.getFilterPath() + File.separator + dialog.getFileName();

Should help... :)

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: Stupid FileDialog question [message #462062 is a reply to message #462060] Wed, 05 October 2005 14:14 Go to previous message
Mark Victory is currently offline Mark VictoryFriend
Messages: 133
Registered: July 2009
Senior Member
That works great.

Thanks.

Mark
"Grzegorz Zielinski" <g_zielinski@intechion.pl> wrote in message
news:9c865cd0a368c797dd989dff30@news.eclipse.org...
> Hello Mark,
>
>> How do I get the FileDialog to return full paths for the selected
>> file(s)? getFileNames( ) is returning me only the file name not the
>> full path?
>>
>> Thanks,
>> Mark
>
> Try:
> String name = dialog.getFilterPath() + File.separator +
> dialog.getFileName();
>
> Should help... :)
>
> Grzegorz Zielinski
> g_zielinski<at>intechion.pl
>
>
Previous Topic:Client test tool for SWT
Next Topic:Wanted: Simple ant file for hello world
Goto Forum:
  


Current Time: Fri Apr 26 12:44:57 GMT 2024

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

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

Back to the top