Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DirectoryDialog initial directory
DirectoryDialog initial directory [message #666080] Tue, 19 April 2011 01:34 Go to next message
spcmdr is currently offline spcmdrFriend
Messages: 15
Registered: January 2011
Junior Member
Hi

The DirectoryDialog is fine for helping the user select a directory in the filesystem but how to init it in order to have a default directory selected ?

DirectoryDialog dialog = new DirectoryDialog(getSite().getShell());
String directory = dialog.open();




If is not possible, is there another dialog that can be use to do this ?

Regards
Re: DirectoryDialog initial directory [message #666108 is a reply to message #666080] Tue, 19 April 2011 07:27 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
http://www.eclipse.org/forums/index.php?t=msg&th=207881& amp;start=0&S=0d381c41f48a79bc5c477ccc566be3df

Lakshmi P Shanmugam
Re: DirectoryDialog initial directory [message #666114 is a reply to message #666080] Tue, 19 April 2011 07:21 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Your question has already been answered! Please search the forum with
your title.

Tom

Am 19.04.11 03:34, schrieb spcmdr@yahoo.fr:
> Hi
>
> The DirectoryDialog is fine for helping the user select a directory in
> the filesystem but how to init it in order to have a default directory
> selected ?
>
> DirectoryDialog dialog = new DirectoryDialog(getSite().getShell());
> String directory = dialog.open();
>
>
>
> If is not possible, is there another dialog that can be use to do this ?
>
> Regards
>
Previous Topic:Re: DirectoryDialog initial directory
Next Topic:Legal question about SWT
Goto Forum:
  


Current Time: Thu Apr 25 10:44:14 GMT 2024

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

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

Back to the top