File Chooser [message #152970] |
Wed, 06 October 2004 05:36 |
Eclipse User |
|
|
|
Originally posted by: svenkat.asu.edu
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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?
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03559 seconds