From 3ab14ac58b3829f6f83353eb3e600cf9152d83bc Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 6 Feb 2007 17:29:00 +0000 Subject: [PATCH] hardwired default user questionnaire url and by default will always check for a questionnaire when running with gui. --- src/jalview/bin/Jalview.java | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 13e9433..6079790 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -122,16 +122,23 @@ public class Jalview desktop = new Desktop(); desktop.setVisible(true); desktop.discoverer.start(); - } - String url = aparser.getValue("questionnaire"); - if (url!=null && !headless) { - // Start the desktop questionnaire prompter - Cache.log.debug("Starting questionnaire url at "+url); - if (url!=null) { - desktop.checkForQuestionnaire(url); - } - } + String url = aparser.getValue("questionnaire"); + if (url!=null) { + // Start the desktop questionnaire prompter with the specified questionnaire + Cache.log.debug("Starting questionnaire url at "+url); + desktop.checkForQuestionnaire(url); + } else { + if (Cache.getProperty("NOQUESTIONNAIRES")==null) { + // Start the desktop questionnaire prompter with the specified questionnaire + // String defurl = "http://anaplog.compbio.dundee.ac.uk/cgi-bin/questionnaire.pl"; // + String defurl = "http://www.jalview.org/cgi-bin/questionnaire.pl"; + Cache.log.debug("Starting questionnaire with default url: "+defurl); + desktop.checkForQuestionnaire(defurl); + + } + } + } String file = null, protocol = null, format = null, data=null; jalview.io.FileLoader fileLoader = new jalview.io.FileLoader(); -- 1.7.10.2