add .fasta to save dialog
authoramwaterhouse <Andrew Waterhouse>
Wed, 23 Mar 2005 11:57:37 +0000 (11:57 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 23 Mar 2005 11:57:37 +0000 (11:57 +0000)
src/jalview/gui/AlignFrame.java

index 43bdb2f..7071d81 100755 (executable)
@@ -62,22 +62,22 @@ public class AlignFrame extends GAlignFrame
 \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