[
https://issues.apache.org/jira/browse/PIVOT-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roger Whitcomb reassigned PIVOT-492:
------------------------------------
Assignee: Roger Whitcomb
> Unable to select a file and/or a directory in FileBrowserSheet
> --------------------------------------------------------------
>
> Key: PIVOT-492
> URL: https://issues.apache.org/jira/browse/PIVOT-492
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Affects Versions: 1.4
> Reporter: David Gao
> Assignee: Roger Whitcomb
> Labels: Directory, FileBrowser, FileBrowserSheet
> Fix For: 2.1
>
> Attachments: FileBrowserSheet.diff, TerraFileBrowserSheetSkin.diff,
> src.java.zip
>
>
> Hi,
> I'm writing a file chooser now with FileBrowserSheet. I found that I can only
> select a file when the mode is SAVE_AS and a directory when the mode is
> SAVE_TO.
> I would like a mode in which I can select either a file or a directory. I
> find no way to realize this. Please help.
> The function shoule be something like what Swing JFileChoose does below:
> JFileChooser chooser = new JFileChooser();
> ...
> chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
> int returnVal = chooser.showOpenDialog(this);
> My use case is like this. I am writing a tool which can do some conversion
> tasks for files. If user selects a file via FileBrowserSheet, the tool will
> just deal with the selected file. However, if the user selects a folder, the
> tool will scan and convert all files or filtered files under this folder
> recursively. This will make the tool look smarter.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira