From: amwaterhouse Date: Fri, 18 Mar 2005 16:12:45 +0000 (+0000) Subject: filefilter added X-Git-Tag: Release_2_0~562 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9e896372d111e5b6090ce211e06c6c6e5c4a75fa;p=jalview.git filefilter added --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index fdd5f68..448e468 100755 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -147,7 +147,8 @@ public void windowClosing(WindowEvent evt) public void inputLocalFileMenuItem_actionPerformed(ActionEvent e) { - JalviewFileChooser chooser = new JalviewFileChooser(); + JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"), + new String[]{"fa", "blc"}, "Alignment files"); chooser.setFileView(new JalviewFileView()); chooser.setDialogTitle("Open local file"); chooser.setToolTipText("Open"); diff --git a/src/jalview/gui/UserDefinedColours.java b/src/jalview/gui/UserDefinedColours.java index 6fed854..8398643 100755 --- a/src/jalview/gui/UserDefinedColours.java +++ b/src/jalview/gui/UserDefinedColours.java @@ -124,7 +124,8 @@ public class UserDefinedColours extends GUserDefinedColours implements ChangeLis protected void loadbutton_actionPerformed(ActionEvent e) { - JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY")); + JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"), + new String[]{".jvuc"}, "Jalview User Colours"); chooser.setFileView(new jalview.io.JalviewFileView()); chooser.setDialogTitle("Load colour scheme"); chooser.setToolTipText("Load");