[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Seeding initial directory in DialogDirectory

I may not be understanding the setFilterPath API in DirectoryDialog. From what I observe in WinXP, it has no effect (e.g., you begin in "My Documents" whether you want to or not... In FileDialog, you can use this to seed the initial location within the filesystem from which to begin navigation. I'd tried using a filter mask of "*." in FileDialog, but you can't select a directory there (makes sense)...

My goal is to prompt for a location to create a new file, seeding it with the recommended location (based on the user.home System property). Unfortunately, I'm at SWT 3.2.3.v3236c which ships with current IDE from IBM. Any suggested work arounds to provide selection of just directories with create/delete capabilities as exist in the DirectoryDialog?

I suppose I can simply use the FileDialog and test if the returned String results in an existing File or not to glean if it was new (e.g., to decide fill in default values).