From 8428b745ead060bf2f03eabb6e7b0d6dbb37d844 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 23 Mar 2005 11:57:37 +0000 Subject: [PATCH] add .fasta to save dialog --- src/jalview/gui/AlignFrame.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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"); -- 1.7.10.2