Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » File Chooser
File Chooser [message #152970] Wed, 06 October 2004 05:36 Go to next message
Eclipse UserFriend
Originally posted by: svenkat.asu.edu

How do I implement a dialog where the user can select a file?
Re: File Chooser [message #153016 is a reply to message #152970] Wed, 06 October 2004 13:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wangwei.org.gmail.com

Why not juse use org.eclipse.swt.widgets.FileDialog ?

"Swami" <svenkat@asu.edu> wrote news:ck0095$6si$1@eclipse.org...
> How do I implement a dialog where the user can select a file?
>
Re: File Chooser [message #153072 is a reply to message #153016] Wed, 06 October 2004 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: svenkat.asu.edu

Is there any sample code snippet on using that in a plug-in?


WANG Wei wrote:

> Why not juse use org.eclipse.swt.widgets.FileDialog ?

> "Swami" <svenkat@asu.edu> wrote news:ck0095$6si$1@eclipse.org...
> > How do I implement a dialog where the user can select a file?
> >
Re: File Chooser [message #153193 is a reply to message #153072] Thu, 07 October 2004 01:05 Go to previous message
Eclipse UserFriend
Originally posted by: wangwei.org.gmail.com

For example:

Shell shell = new Shell();
FileDialog dlg = new FileDialog(shell);
String filePath = dlg.open();
if (filePath != null) {
// ...
}
shell.dispose();

"Swami" <svenkat@asu.edu> wrote news:ck141g$h42$1@eclipse.org...
> Is there any sample code snippet on using that in a plug-in?
>
>
> WANG Wei wrote:
>
> > Why not juse use org.eclipse.swt.widgets.FileDialog ?
>
> > "Swami" <svenkat@asu.edu> wrote news:ck0095$6si$1@eclipse.org...
> > > How do I implement a dialog where the user can select a file?
> > >
>
>
Previous Topic:plugins copied into plugin folder of windows m/c not responding.
Next Topic:Server/Environment Diagramming/Modeling
Goto Forum:
  


Current Time: Wed Jan 22 09:12:25 GMT 2025

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

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

Back to the top