import java.awt.event.ItemListener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
+import java.io.UnsupportedEncodingException;
import java.net.URL;
+import java.net.URLEncoder;
import java.util.Hashtable;
import java.util.Map;
import java.util.Vector;
{
groupURLdescr.addElement(description);
groupURLdescr.addElement(description);
+ String urlstub=wfname;
+ if (wfname.indexOf(" ")>-1)
+ {
+ // make the name safe!
+ try {
+ urlstub = URLEncoder.encode(wfname,"utf-8");
+ } catch (UnsupportedEncodingException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
groupURLLinks
.addElement(wfname
+ "|"
+ "http://www.ebi.ac.uk/enfin-srv/envision2/pages/linkin.jsf?tool=Jalview&workflow="
- + wfname
+ + urlstub
+ "&datasetName=JalviewSeqs$DATASETID$&input=$SEQUENCEIDS$&inputType=0|,"); // #"+description+"#");
groupURLLinks
.addElement(wfname
+ "|"
+ "http://www.ebi.ac.uk/enfin-srv/envision2/pages/linkin.jsf?tool=Jalview&workflow="
- + wfname
+ + urlstub
+ "&datasetName=JalviewSeqs$DATASETID$&input=$SEQUENCES=/([A-Za-z]+)+/=$&inputType=1|,"); // #"+description+"#");
}
}