From: amwaterhouse Date: Wed, 23 Mar 2005 11:57:37 +0000 (+0000) Subject: add .fasta to save dialog X-Git-Tag: Release_2_0~520 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8428b745ead060bf2f03eabb6e7b0d6dbb37d844;p=jalview.git add .fasta to save dialog --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 43bdb2f..7071d81 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -62,22 +62,22 @@ public class AlignFrame extends GAlignFrame protected void saveAs_actionPerformed(ActionEvent e) { - String suffix = ""; + String suffix [] = null; if(e.getActionCommand().equals("FASTA")) - suffix = "fa"; + suffix = new String[]{"fa", "fasta"}; else if(e.getActionCommand().equals("MSF")) - suffix = "msf"; + suffix = new String[]{"msf"}; else if(e.getActionCommand().equals("CLUSTAL")) - suffix = "aln"; + suffix = new String[]{"aln"}; else if(e.getActionCommand().equals("BLC")) - suffix = "blc"; + suffix = new String[]{"blc"}; else if(e.getActionCommand().equals("PIR")) - suffix = "pir"; + suffix = new String[]{"pir"}; else if(e.getActionCommand().equals("PFAM")) - suffix = "pfam"; + suffix = new String[]{"pfam"}; JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY") - , new String[]{suffix}, e.getActionCommand()+" file"); + , suffix, e.getActionCommand()+" file"); chooser.setFileView(new JalviewFileView()); chooser.setDialogTitle("Save Alignment to file - "+e.getActionCommand() +" format."); chooser.setToolTipText("Save");