From 9e896372d111e5b6090ce211e06c6c6e5c4a75fa Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 18 Mar 2005 16:12:45 +0000 Subject: [PATCH] filefilter added --- src/jalview/gui/Desktop.java | 3 ++- src/jalview/gui/UserDefinedColours.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"); -- 1.7.10.2