Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » DirectoryDialog initial directory
icon13.gif  DirectoryDialog initial directory [message #665869] Sun, 17 April 2011 17:59 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 #665903 is a reply to message #665869] Mon, 18 April 2011 05:10 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 17/04/11 11:29 PM, spcmdr@yahoo.fr wrote:
> 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

DirectoryDialog is provided by SWT. cc-ing SWT forum.

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: DirectoryDialog initial directory [message #666198 is a reply to message #665869] Tue, 19 April 2011 12:56 Go to previous message
tk  is currently offline tk Friend
Messages: 26
Registered: April 2010
Junior Member
Try setFilterPath()
Previous Topic:editor doesn't open on linux (ubuntu 10.10)
Next Topic:Text field and Text editor
Goto Forum:
  


Current Time: Wed Apr 24 17:49:33 GMT 2024

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

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

Back to the top