|
From: Rogan D. (JIRA) <no...@sp...> - 2008-10-30 07:04:47
|
[ http://jira.springframework.org/browse/RCP-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40745#action_40745 ]
Rogan Dawes commented on RCP-580:
---------------------------------
I think it could be done a bit more carefully.
For example (more pseudo):
if (!file.getName().endsWith(suffix)){
if (file.exists()) // That's what I said, that's what I want!
return file;
if ((file.getName()+suffix).exists())
return file.getName()+suffix;
}
> FileChooserUtils should add file extension automatically
> --------------------------------------------------------
>
> Key: RCP-580
> URL: http://jira.springframework.org/browse/RCP-580
> Project: Spring Rich Client Project
> Issue Type: New Feature
> Reporter: Johannes Schneider
>
> FileChooserUtils#showFileChooser should append the file suffix automatically if the user didn't add it.
> something like (pseudo):
> if (!file.getName().endsWith(suffix)){
> file.getName()+suffix;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|