Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Enabling "New Folder" capability for browse button?
Enabling "New Folder" capability for browse button? [message #1011116] Mon, 18 February 2013 22:12 Go to next message
Ellen Badgley is currently offline Ellen Badgley
Messages: 35
Registered: October 2012
Member
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 18:52 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 942
Registered: July 2009
Senior Member
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 19:39 Go to previous message
Ellen Badgley is currently offline Ellen Badgley
Messages: 35
Registered: October 2012
Member
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: Sat Oct 25 11:25:03 GMT 2014

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

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