From 784398bbc60a0e6ae55c6cde1b4f5b1b6f4a5592 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 1 Apr 2010 16:05:03 +0000 Subject: [PATCH] reinstate submission of database Ids as well as sequence Id strings. --- src/jalview/ws/EnfinEnvision2OneWay.java | 66 +++++++++++++++++------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/src/jalview/ws/EnfinEnvision2OneWay.java b/src/jalview/ws/EnfinEnvision2OneWay.java index 8e596b7..8905515 100644 --- a/src/jalview/ws/EnfinEnvision2OneWay.java +++ b/src/jalview/ws/EnfinEnvision2OneWay.java @@ -142,6 +142,7 @@ public class EnfinEnvision2OneWay extends DefaultHandler implements Runnable,WSM private boolean running=false; private Vector groupURLLinks = null; private Vector groupURLdescr = null; + private static String[] allowedDb=new String[] {"UNIPROT","EMBL","PDB"} ; public EnfinEnvision2OneWay() { groupURLLinks = new Vector(); @@ -366,40 +367,31 @@ public class EnfinEnvision2OneWay extends DefaultHandler implements Runnable,WSM final String label = urlLink.getLabel(); boolean usingNames = false; // Now see which parts of the group apply for this URL - String ltarget = urlLink.getTarget(); // jalview.util.DBRefUtils.getCanonicalName(urlLink.getTarget()); - Object[] idset = (Object[]) commonDbrefs.get(ltarget.toUpperCase()); + String ltarget; String[] seqstr,ids; // input to makeUrl - if (idset!=null) - { - int numinput = ((int[])idset[0])[0]; - String[] allids = ((String[])idset[1]); - seqstr = new String[numinput]; - ids = new String[numinput]; - for (int sq=0,idcount=0;sq