package jalview.ws.jws2;
+import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
* eventually, JWS2 services will appear under the same align/etc submenus.
* for moment we keep them separate.
*/
- JMenu atpoint, jws2al = new JMenu("JWS2 Alignment");
+ JMenu atpoint, jws2al = new JMenu("JABA Alignment");
MsaWSClient msacl = new MsaWSClient();
+ Vector hostLabels=new Vector();
for (final Jws2Instance service : services)
{
atpoint = jws2al;
atpoint.setToolTipText(service.getActionText());
}
}
+ if (!byhost && !hostLabels.contains(host+service.getActionText()))
+ {
+ // add a marker indicating where this service is hosted
+ // relies on services from the same host being listed in a contiguous group
+ JMenuItem hitm;
+ atpoint.addSeparator();
+ atpoint.add(hitm=new JMenuItem(host));
+ hitm.setForeground(Color.blue);
+ hostLabels.addElement(host);
+ }
msacl.attachWSMenuEntry(atpoint, service, alignFrame);
/*
* JMenuItem sitem = new JMenuItem(service.serviceType);
public static Vector<String> getServiceUrls()
{
String surls = Cache.getDefault(JWS2HOSTURLS,
- "http://www.compbio.dundee.ac.uk/jaws2");
+ "http://www.compbio.dundee.ac.uk/jaba");
Vector<String> urls = new Vector<String>();
try
{