Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dialog for path (not file)
Dialog for path (not file) [message #437977] Mon, 14 June 2004 16:28 Go to next message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
I want to be able to solicit a path from the user without asking for the
filename. I'm not exactly sure how to do this.
org.eclipse.swt.widgets.FileDialog always requires a filename to be
entered by the user. I've also looked at org.eclipse.ui.dialogs.SaveAs,
but beyond rewriting this for my purpose I see no way of removing the file
textfield.

Anyone any suggestions?

Thanks.

James
Re: Dialog for path (not file) [message #438005 is a reply to message #437977] Mon, 14 June 2004 17:18 Go to previous messageGo to next message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
Just to clarify - a directory path (from the file system).

James Willans wrote:

> I want to be able to solicit a path from the user without asking for the
> filename. I'm not exactly sure how to do this.
> org.eclipse.swt.widgets.FileDialog always requires a filename to be
> entered by the user. I've also looked at org.eclipse.ui.dialogs.SaveAs,
> but beyond rewriting this for my purpose I see no way of removing the file
> textfield.

> Anyone any suggestions?

> Thanks.

> James
Re: Dialog for path (not file) [message #438008 is a reply to message #437977] Mon, 14 June 2004 17:49 Go to previous messageGo to next message
Michael Xia is currently offline Michael XiaFriend
Messages: 119
Registered: July 2009
Senior Member
org.eclipse.swt.widgets.DirectoryDialog.

Michael
Re: Dialog for path (not file) [message #438010 is a reply to message #438008] Mon, 14 June 2004 18:08 Go to previous messageGo to next message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
Michael,

Many thanks - I can't believe I missed that!

James

Michael Xia wrote:

> org.eclipse.swt.widgets.DirectoryDialog.

> Michael
Re: Dialog for path (not file) [message #438022 is a reply to message #438005] Mon, 14 June 2004 20:06 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
See DirectoryDialog.

"James Willans" <jwillans@cs.york.ac.uk> wrote in message
news:cakmkq$q72$1@eclipse.org...
> Just to clarify - a directory path (from the file system).
>
> James Willans wrote:
>
> > I want to be able to solicit a path from the user without asking for the
> > filename. I'm not exactly sure how to do this.
> > org.eclipse.swt.widgets.FileDialog always requires a filename to be
> > entered by the user. I've also looked at org.eclipse.ui.dialogs.SaveAs,
> > but beyond rewriting this for my purpose I see no way of removing the
file
> > textfield.
>
> > Anyone any suggestions?
>
> > Thanks.
>
> > James
>
>
Previous Topic:TreeListener is not notified when TreeItem.setExpanded is called
Next Topic:SWT PPC Table Bug
Goto Forum:
  


Current Time: Thu Mar 28 22:00:31 GMT 2024

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

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

Back to the top