Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Selection dialog for both files and directories?

There isn't one - you will have to write your own if you really want it.
Note that there are many bizzarre issues to consider.
(i.e. Is the user choosing this directory, or does he just want to 
navigate into it? <g>)
Have fun!

Carolyn





Joe_Szurszewski@xxxxxxx
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
01/25/2002 11:11 AM
Please respond to platform-swt-dev

 
        To:     platform-swt-dev@xxxxxxxxxxx
        cc: 
        Subject:        [platform-swt-dev] Selection dialog for both files and directories?


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




Back to the top