You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "David Gao (JIRA)" <ji...@apache.org> on 2010/05/15 04:06:41 UTC
[jira] Created: (PIVOT-492) Unable to select a file and/or a
directory in FileBrowserSheet
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: Bug
Components: wtk
Affects Versions: 1.4
Reporter: David Gao
Fix For: 1.5.1
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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-492) Unable to select a file and/or a
directory in FileBrowserSheet
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-492:
-----------------------------
Fix Version/s: (was: 2.0)
2.1
> 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: Greg Brown
> Fix For: 2.1
>
> Attachments: FileBrowserSheet.diff, src.java.zip, TerraFileBrowserSheetSkin.diff
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (PIVOT-492) Unable to select a file and/or a
directory in FileBrowserSheet
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown reassigned PIVOT-492:
--------------------------------
Assignee: Greg Brown
> 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: Greg Brown
> Fix For: 2.0
>
> Attachments: FileBrowserSheet.diff, src.java.zip, TerraFileBrowserSheetSkin.diff
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-492) Unable to select a file and/or a
directory in FileBrowserSheet
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-492:
-----------------------------
Issue Type: Improvement (was: Bug)
This is most likely best implemented as an extension to the OPEN and OPEN_MULTIPLE modes.
> 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
> Fix For: 1.5.1
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-492) Unable to select a file and/or a
directory in FileBrowserSheet
Posted by "Wenguang Liu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenguang Liu updated PIVOT-492:
-------------------------------
Attachment: FileBrowserSheet.diff
TerraFileBrowserSheetSkin.diff
src.java.zip
I tried to implement two new modes:
- OPEN_DIR : user can choose one single directory
- OPEN_MULTIPLE_ANY : user can choose multiple directories and files
Hope this can help.
> 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
> Fix For: 2.0
>
> Attachments: FileBrowserSheet.diff, src.java.zip, TerraFileBrowserSheetSkin.diff
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.