Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Stupid FileDialog question
Stupid FileDialog question [message #462058] Wed, 05 October 2005 09:40 Go to next message
Eclipse UserFriend
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 10:04 Go to previous messageGo to next message
Eclipse UserFriend
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 10:14 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 00:35:13 EDT 2025

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

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

Back to the top