\r
protected void saveAs_actionPerformed(ActionEvent e)\r
{\r
- String suffix = "";\r
+ String suffix [] = null;\r
if(e.getActionCommand().equals("FASTA"))\r
- suffix = "fa";\r
+ suffix = new String[]{"fa", "fasta"};\r
else if(e.getActionCommand().equals("MSF"))\r
- suffix = "msf";\r
+ suffix = new String[]{"msf"};\r
else if(e.getActionCommand().equals("CLUSTAL"))\r
- suffix = "aln";\r
+ suffix = new String[]{"aln"};\r
else if(e.getActionCommand().equals("BLC"))\r
- suffix = "blc";\r
+ suffix = new String[]{"blc"};\r
else if(e.getActionCommand().equals("PIR"))\r
- suffix = "pir";\r
+ suffix = new String[]{"pir"};\r
else if(e.getActionCommand().equals("PFAM"))\r
- suffix = "pfam";\r
+ suffix = new String[]{"pfam"};\r
\r
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY")\r
- , new String[]{suffix}, e.getActionCommand()+" file");\r
+ , suffix, e.getActionCommand()+" file");\r
chooser.setFileView(new JalviewFileView());\r
chooser.setDialogTitle("Save Alignment to file - "+e.getActionCommand() +" format.");\r
chooser.setToolTipText("Save");\r