From: jprocter Date: Thu, 1 Apr 2010 16:05:03 +0000 (+0000) Subject: reinstate submission of database Ids as well as sequence Id strings. X-Git-Tag: Release_2_5~95 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=784398bbc60a0e6ae55c6cde1b4f5b1b6f4a5592;p=jalview.git reinstate submission of database Ids as well as sequence Id strings. --- 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