Enabling "New Folder" capability for browse button? [message #1011116] |
Mon, 18 February 2013 17:12  |
Eclipse User |
|
|
|
I've got a situation where the user needs to specify an appropriate output folder (for the process governed by the configuration file being edited within Sapphire). I would like for them to be able to create the folder if it doesn't already exist.
I'm using @ProjectRelativePath, and the property is declared as follows:
@XmlBinding(path = "FinalDirectory")
@Label(standard = "Final Directory")
@Type(base = Path.class)
@ProjectRelativePath
@ValidFileSystemResourceType(FileSystemResourceType.FOLDER)
ValueProperty PROP_FINALDIRECTORY = new ValueProperty(TYPE,
"FinalDirectory");
Value<Path> getFinalDirectory();
void setFinalDirectory(String value);
void setFinalDirectory(Path path);
When the Browse button is clicked and the browsing window opens, if the desired folder doesn't already exist, the user will have to exit the window, create it, then browse anew to the folder. It strikes me that there is probably an obvious way to implement a "shortcut" for this process, but I'm not finding it!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03750 seconds