- alignSuffix.put("fasta", "Fasta file");
- alignSuffix.put("fa", "Fasta file");
- alignSuffix.put("fastq", "Fasta file");
- alignSuffix.put("blc", "BLC file");
- alignSuffix.put("msf", "MSF file");
- alignSuffix.put("pfam", "PFAM file");
- alignSuffix.put("aln", "Clustal file");
- alignSuffix.put("pir", "PIR file");
- alignSuffix.put("jar", "Jalview file");
+ extensions = new HashMap<String, String>();
+ for (FileFormatI ff : FileFormats.getInstance().getFormats())
+ {
+ String desc = ff.getName() + " file";
+ String exts = ff.getExtensions();
+ for (String ext : exts.split(","))
+ {
+ extensions.put(ext.trim().toLowerCase(), desc
+ + ("jar".equals(ext) ? " (old)" : ""));
+ }
+ }