Hi Alexander,

I agree with you that AllPermissionsFileService should be easily extensible.

I have created an issue: https://www.canoo.com/jira/browse/UBA-7137

For now you will have to implement your own IFileService (copy of
AllPermissionsFileService) and install it in your launcher.

In your case, amomng many solutions a quick minimal fix would be to simply
change the code as follows:

  if (file.getName().toLowerCase().endsWith(allowedExtensions[j])) {
      return true;
  }

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Alexander Vegh
>Sent: Thursday, January 04, 2007 8:38 PM
>To: [email protected]
>Subject: [ULC-developer] Bug in with FileChooserConfig
>
>
>Hi
>
>I am setting up a ClientContext.loadFile(...) call
>
>The config is like this:
>
>         FileChooserConfig config = new FileChooserConfig ();
>
>         config.setFileSelectionMode ( FileChooserConfig.FILES_ONLY );
>         config.setDialogType ( FileChooserConfig.OPEN_DIALOG );
>
>         config.addFileFilterConfig ( new
>
>FileChooserConfig.FileFilterConfig ( new
>String[]{"bmp","jpg","jpeg","png","gif"}, "*.jpg;*.bmp;*.png;*.gif" )
>
>
>My problem is now that my Clients are running windows mostly, and that
>the Dialog filters out case sensitive variations of "bmp", eg "BMP", or
>"Bmp".
>
> From what I see I do not have any other option than writing my own
>FileService since AllPermissionsFileService implements the FileFilter
>like this:
>
>if (file.getName().endsWith(allowedExtensions[j])) {
>    return true;
>}
>
>
>For the future it would be really nice if there would be a
>case-insensitive filtering option, or if AllPermissionsFileService were
>refactored, so I could rewrite the FileFilter in a derived class.
>
>Regards
>Alex
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to