ga tracker option and apply gpl development license
authorjprocter <Jim Procter>
Mon, 8 Jun 2009 11:00:34 +0000 (11:00 +0000)
committerjprocter <Jim Procter>
Mon, 8 Jun 2009 11:00:34 +0000 (11:00 +0000)
src/jalview/bin/Cache.java

index dad7326..4469975 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
@@ -87,6 +87,7 @@ import com.boxysystems.jgoogleanalytics.JGoogleAnalyticsTracker;
  * service </li>
  * <li>QUESTIONNAIRE last questionnaire:responder id string from questionnaire
  * service </li>
+ * <li>USAGESTATS (true) Enable google analytics tracker for collecting usage statistics</li>
  * <li>DAS_LOCAL_SOURCE list of local das sources </li>
  * <li>SHOW_OVERVIEW boolean for overview window display </li>
  * <li>ANTI_ALIAS boolean for smooth fonts </li>
@@ -530,9 +531,13 @@ public class Cache
     }
     return localSources;
   }
-  
-  public static JGoogleAnalyticsTracker tracker=null;
-  
+  /**
+   * GA tracker object - null if tracking not enabled.
+   */
+  protected static JGoogleAnalyticsTracker tracker=null;
+  /**
+   * Initialise the google tracker if it is not done already.
+   */
   public static void initGoogleTracker()
   {
     if (tracker==null)