apply gpl development license
[jalview.git] / src / jalview / gui / Preferences.java
index bd4c900..26d7260 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -22,6 +22,7 @@ import java.util.*;
 
 import java.awt.*;
 import java.awt.event.*;
+
 import javax.swing.*;
 
 import jalview.bin.*;
@@ -37,6 +38,7 @@ import jalview.schemes.*;
  */
 public class Preferences extends GPreferences
 {
+
   /**
    * Holds name and link separated with | character. Sequence ID must be
    * $SEQUENCE_ID$ or $SEQUENCE_ID=/.possible | chars ./=$
@@ -111,6 +113,7 @@ public class Preferences extends GPreferences
     quality.setSelected(Cache.getDefault("SHOW_QUALITY", true));
     identity.setSelected(Cache.getDefault("SHOW_IDENTITY", true));
     openoverv.setSelected(Cache.getDefault("SHOW_OVERVIEW", false));
+    showUnconserved.setSelected(Cache.getDefault("SHOW_UNCONSERVED", false));
 
     for (int i = 0; i < 13; i++)
     {
@@ -255,7 +258,7 @@ public class Preferences extends GPreferences
 
     Cache.applicationProperties.setProperty("ID_ITALICS", Boolean
             .toString(idItalics.isSelected()));
-
+    Cache.applicationProperties.setProperty("SHOW_UNCONSERVED",Boolean.toString(showUnconserved.isSelected()));
     Cache.applicationProperties.setProperty("ANTI_ALIAS", Boolean
             .toString(smoothFont.isSelected()));
 
@@ -535,6 +538,14 @@ public class Preferences extends GPreferences
     }
 
   }
+  /* (non-Javadoc)
+   * @see jalview.jbgui.GPreferences#showunconserved_actionPerformed(java.awt.event.ActionEvent)
+   */
+  protected void showunconserved_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+    super.showunconserved_actionPerformed(e);
+  }
 
   private void jbInit() throws Exception
   {