From 49180b19348856c044a3a427f371480ed3fef459 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sat, 5 Oct 2013 12:20:52 +0100 Subject: [PATCH] JAL-1378 hack to place 'Predictors' into Secondary struture predictors (may be redacted later) --- src/jalview/ws/jws2/jabaws2/Jws2InstanceFactory.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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()); -- 1.7.10.2