Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2344

Refactor file format options as interfaces instead of text strings

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.2
    • Component/s: Dev and Dep
    • Labels:

      Description

      Currently, supported file formats are handled as text strings (constants in AppletFormatAdapter).
      This is fragile (updates needed in several places for a new format), verbose (if-then-else statements), not type safe, does not support plug-in of additional formats.

      Enhance the code to use interfaces that describe file formats, with file format types as implementors of these interfaces.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gmungoc Mungo Carstairs
              Reporter:
              gmungoc Mungo Carstairs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: