Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] File selection dialog that allows a directory?


Actually, what Nick meant to say was to ask in the newsgroup, since the SWT mailing list is for people who are *implementing* SWT.

In any case, the answer to your question is no, there is no single dialog to do what you want. If this is important for your app, and you do write one, you should consider contributing it.

McQ.



Nick_Edgar@xxxxxxx
Sent by: platform-ui-dev-admin@xxxxxxxxxxx

01/25/2002 09:07 AM
Please respond to platform-ui-dev

       
        To:        platform-ui-dev@xxxxxxxxxxx
        cc:        
        Subject:        Re: [platform-ui-dev] File selection dialog that allows a directory?


Joe,

I know of no way of doing this.  Please ask the SWT team on the SWT
mailing list.
If they don't currently support this, I would recommend just going with
the two actions rather than trying to roll your own dialog.

Nick






Joe_Szurszewski@xxxxxxx
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
01/24/02 06:45 PM
Please respond to platform-ui-dev


       To:     platform-ui-dev@xxxxxxxxxxx
       cc:
       Subject:        [platform-ui-dev] File selection dialog that allows a directory?


I'm looking for a standard dialog I can use to let the user select either
a file or a directory.  The SWT dialogs (at least on WinXP) appear to
allow one or the other but not both.  In other words, the FileDialog
allows *only* a file selection and the DirectoryDialog allows *only* a
directory selection.  The problem with this is that it forces me to create
two buttons, one for "Add file" and one for "Add directory" where one
would really do the job.  It also forces the user to decide whether
they're adding a file or directory before they've had a chance to look at
their file system.  Is there any way around this?

Thanks,
Joe


_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev



Back to the top