Skip to main content



      Home
Home » Archived » Sapphire » Enabling "New Folder" capability for browse button?
Enabling "New Folder" capability for browse button? [message #1011116] Mon, 18 February 2013 17:12 Go to next message
Eclipse UserFriend
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!
Re: Enabling "New Folder" capability for browse button? [message #1011538 is a reply to message #1011116] Tue, 19 February 2013 13:52 Go to previous messageGo to next message
Eclipse UserFriend
The dialog that is used for relative path browsing could indeed use a create folder button. Could you open an enhancement request?

- Konstantin
Re: Enabling "New Folder" capability for browse button? [message #1011554 is a reply to message #1011538] Tue, 19 February 2013 14:39 Go to previous message
Eclipse UserFriend
Thanks! I've opened an enhancement request as suggested.

- Ellen
Previous Topic:ListProperty editor and "nested" properties
Next Topic:Announcing Sapphire 0.5.4 and 0.6.1 Releases
Goto Forum:
  


Current Time: Tue Jul 22 22:46:57 EDT 2025

Powered by FUDForum. Page generated in 0.03750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top