filefilter added
authoramwaterhouse <Andrew Waterhouse>
Fri, 18 Mar 2005 16:12:45 +0000 (16:12 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 18 Mar 2005 16:12:45 +0000 (16:12 +0000)
src/jalview/gui/Desktop.java
src/jalview/gui/UserDefinedColours.java

index fdd5f68..448e468 100755 (executable)
@@ -147,7 +147,8 @@ public void windowClosing(WindowEvent evt)
 \r
  public void inputLocalFileMenuItem_actionPerformed(ActionEvent e)\r
  {\r
-   JalviewFileChooser chooser = new JalviewFileChooser();\r
+   JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"),\r
+       new String[]{"fa", "blc"}, "Alignment files");\r
    chooser.setFileView(new JalviewFileView());\r
    chooser.setDialogTitle("Open local file");\r
    chooser.setToolTipText("Open");\r
index 6fed854..8398643 100755 (executable)
@@ -124,7 +124,8 @@ public class UserDefinedColours extends GUserDefinedColours implements ChangeLis
 \r
   protected void loadbutton_actionPerformed(ActionEvent e)\r
   {\r
-    JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
+    JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"),\r
+        new String[]{".jvuc"}, "Jalview User Colours");\r
     chooser.setFileView(new jalview.io.JalviewFileView());\r
     chooser.setDialogTitle("Load colour scheme");\r
     chooser.setToolTipText("Load");\r