Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Re: DirectoryDialog initial directory
Re: DirectoryDialog initial directory [message #665900] Mon, 18 April 2011 05:10 Go 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 #665920 is a reply to message #665900] Mon, 18 April 2011 07:32 Go to previous message
jim liu is currently offline jim liuFriend
Messages: 37
Registered: February 2011
Location: shanghai
Member
DirectoryDialog dialog = new DirectoryDialog(getSite().getShell());
dialog.setFilterPath(String)
dialog.open();
String directory = dialog.open();

DirectoryDialog


java eclipse Search
http://javafind.appspot.com/
Previous Topic:Intransparent shape on an transparent shell
Next Topic:DirectoryDialog initial directory
Goto Forum:
  


Current Time: Thu Apr 25 22:51:07 GMT 2024

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

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

Back to the top