From: Jim Procter Date: Sat, 5 Oct 2013 11:20:52 +0000 (+0100) Subject: JAL-1378 hack to place 'Predictors' into Secondary struture predictors (may be redact... X-Git-Tag: Jalview_2_9~200^2~19^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=49180b19348856c044a3a427f371480ed3fef459;p=jalview.git JAL-1378 hack to place 'Predictors' into Secondary struture predictors (may be redacted later) --- diff --git a/src/jalview/ws/jws2/jabaws2/Jws2InstanceFactory.java b/src/jalview/ws/jws2/jabaws2/Jws2InstanceFactory.java index 3923bba..5907713 100644 --- a/src/jalview/ws/jws2/jabaws2/Jws2InstanceFactory.java +++ b/src/jalview/ws/jws2/jabaws2/Jws2InstanceFactory.java @@ -11,7 +11,10 @@ import jalview.ws.uimodel.AlignAnalysisUIText; public class Jws2InstanceFactory { private static HashMap aaConGUI; - + private static String category_rewrite(String cat_name) + { + return (cat_name != null && cat_name.equals("Prediction")) ? "Secondary Structure Prediction" : cat_name; + } private static void init() { if (aaConGUI == null) @@ -40,7 +43,7 @@ public class Jws2InstanceFactory JABAService service) { init(); - Jws2Instance svc = new Jws2Instance(jwsservers, serviceType, name, + Jws2Instance svc = new Jws2Instance(jwsservers, serviceType, category_rewrite(name), description, service); svc.aaui = aaConGUI.get(serviceType.toString());