From 9b57bab507b537d42d62e9a4c5f387d75d31cd8a Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 3 Aug 2012 17:26:27 +0100 Subject: [PATCH] JAL-1136 fix logic for recovering AACons params --- src/jalview/gui/Jalview2XML.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 08deba4..4c042b3 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -1345,15 +1345,14 @@ public class Jalview2XML } AAConsSettings settings = new AAConsSettings(calcIdParam.isAutoUpdate(), service, parmSet, argList); av.setCalcIdSettingsFor(calcIdParam.getCalcId(), settings, calcIdParam.isNeedsUpdate()); + return true; } else { warn("Cannot resolve a service for the parameters used in this project. Try configuring a JABAWS server."); return false; } } - else - throw new Error("Unsupported Version for calcIdparam " - + calcIdParam.toString()); - return false; + throw new Error("Unsupported Version for calcIdparam " + + calcIdParam.toString()); } /** * External mapping between jalview objects and objects yielding a valid and -- 1.7.10.2