Changes between Version 6 and Version 7 of Ticket #2341


Ignore:
Timestamp:
03/09/10 19:45:42 (15 years ago)
Author:
pap
Comment:
  • Create a new public static class in FileDialogInput called FileFilterInfo. It will contain a list of FileFilters and a list indicating whether the "accept all files" filter of JFileChooser should be used.
  • Add method public boolean accepts(File file) that checks the file against the FileFilterInfo.
  • Make FileDialogInput use FileFilterInfo instead of FileFilter.
  • Make the ResourceImportManagers use the FileFilterInfo instead of just a FileFilter.
  • These are generally straightforward especially with the FileFilterInfo.accepts method available.
  • The resource chooser also benefits from this class as it gets simpler. For that purpose the addFilters method was added.
  • Unresolved
    • Removing FileFilter constants from FileDialogInput.
    • Should FileFilterInfo be used in ResourceExportManager. How to handle appending an extension.
    • How to construct FileFilterInfos? How about using static initializers? I know they aren't nice but otherwise there should be some gigantic expression to create a filter info with 5-6 filters.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2341

    • Property Status changed from s2a_design_started to s2b_design_finished