Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » using FileDialog to browse a ftp directory
using FileDialog to browse a ftp directory [message #464350] Mon, 21 November 2005 22:00 Go to next message
Aaron is currently offline AaronFriend
Messages: 13
Registered: July 2009
Junior Member
Hey, I was wondering if there is a way to use a FileDialog to browsse an
ftp site. The ftp client I am using is enterprise ftp and I'm trying to
take advantage of the filters to allow a user to search the ftp server for
different file names. Is there an easy way to do this? I'm wondering if
I can just pass the remote address and directory of the server as the
directory of the FileDialog Filter Path. Any help will be greatly
appreciaed. Thanks.

Aaron
Re: using FileDialog to browse a ftp directory [message #464398 is a reply to message #464350] Tue, 22 November 2005 20:24 Go to previous messageGo to next message
Aaron is currently offline AaronFriend
Messages: 13
Registered: July 2009
Junior Member
anyone? i would just try it out but i'm not sure what to pass as the
directory for the FilterPath. Any suggestions on how to implement a ftp
file browser if this won't work?

Aaron
Re: using FileDialog to browse a ftp directory [message #464499 is a reply to message #464350] Wed, 23 November 2005 15:03 Go to previous messageGo to next message
Charles Tuckey is currently offline Charles TuckeyFriend
Messages: 18
Registered: July 2009
Junior Member
Aaron wrote:
> Hey, I was wondering if there is a way to use a FileDialog to browsse an
> ftp site. The ftp client I am using is enterprise ftp and I'm trying to
> take advantage of the filters to allow a user to search the ftp server
> for different file names. Is there an easy way to do this? I'm
> wondering if I can just pass the remote address and directory of the
> server as the directory of the FileDialog Filter Path. Any help will be
> greatly appreciaed. Thanks.
>
> Aaron
>
I don't know the specific answer to your question. However, a quick
browse through the FileDialog source shows that the FileDialog is built
on top of a native OS file chooser. So, whether you can use FileDialog
to browse ftp directories depends on whether the native file chooser has
this functionality. I suspect the answer is usually "No".

charlie
Re: using FileDialog to browse a ftp directory [message #464503 is a reply to message #464499] Wed, 23 November 2005 15:34 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Charlie is correct in saying that the answer is generally no - generally...

On Windows -

Either mount the FTP as a network drive or make sure that it's available in 'My Network Places'

On Gnome (2.8+) Linux -

Mount the FTP as a network share (Connect to Server) and make sure you're using SWT 3.1 or better.

On MacOS X -

Mount the FTP as a network share (Connect to Server).

As you can see, all of the solutions require some platform specific intervention. However, they all work (the Linux solution can be a little flakey if you want to actually open something off the FTP and not just browse it).
Previous Topic:Open file dialog
Next Topic:Adding Text to ToolBar/ToolBarManager
Goto Forum:
  


Current Time: Thu Apr 18 06:48:49 GMT 2024

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

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

Back to the top