JAL-1378 hack to place 'Predictors' into Secondary struture predictors (may be redact...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sat, 5 Oct 2013 11:20:52 +0000 (12:20 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sat, 5 Oct 2013 11:20:52 +0000 (12:20 +0100)
src/jalview/ws/jws2/jabaws2/Jws2InstanceFactory.java

index 3923bba..5907713 100644 (file)
@@ -11,7 +11,10 @@ import jalview.ws.uimodel.AlignAnalysisUIText;
 public class Jws2InstanceFactory
 {
   private static HashMap<String, AlignAnalysisUIText> 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());