/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
this.aborted = aborted;
}
+
public void run()
{
// first set up exclusion list if needed
final Set<String> ignoredServices = new HashSet<String>();
- for (String ignored : Cache.getDefault(
- "IGNORED_JABAWS_SERVICETYPES", "")
- .split("\\|"))
+ for (String ignored : Cache.getDefault("IGNORED_JABAWS_SERVICETYPES",
+ "").split("\\|"))
{
ignoredServices.add(ignored);
}
Desktop.showUrl(service.getHost());
}
});
- hitm.setToolTipText(JvSwingUtils
- .wrapTooltip(false, MessageManager.getString("label.open_jabaws_web_page ")));
+ hitm.setToolTipText(JvSwingUtils.wrapTooltip(false,
+ MessageManager.getString("label.open_jabaws_web_page")));
service.attachWSMenuEntry(atpoint, alignFrame);
if (alternates.containsKey(service.serviceType))
{
- atpoint.add(hitm = new JMenu(MessageManager.getString("label.switch_server")));
- hitm.setToolTipText(JvSwingUtils
- .wrapTooltip(false, MessageManager.getString("label.choose_jabaws_server")));
+ atpoint.add(hitm = new JMenu(MessageManager
+ .getString("label.switch_server")));
+ hitm.setToolTipText(JvSwingUtils.wrapTooltip(false,
+ MessageManager.getString("label.choose_jabaws_server")));
for (final Jws2Instance sv : alternates.get(service.serviceType))
{
JMenuItem itm;
atpoint = JvSwingUtils.findOrCreateMenu(atpoint, host);
if (atpoint.getToolTipText() == null)
{
- atpoint.setToolTipText(MessageManager.formatMessage("label.services_at", new String[]{host}));
+ atpoint.setToolTipText(MessageManager.formatMessage(
+ "label.services_at", new String[] { host }));
}
}
if (bytype)
Desktop.showUrl(service.getHost());
}
});
- hitm.setToolTipText(JvSwingUtils
- .wrapTooltip(true, MessageManager.getString("label.open_jabaws_web_page")));
+ hitm.setToolTipText(JvSwingUtils.wrapTooltip(true,
+ MessageManager.getString("label.open_jabaws_web_page")));
lasthostFor.put(service.action, host);
}
hostLabels.add(host + service.serviceType
}
} catch (MalformedURLException ex)
{
- Cache.log
- .warn("Problem whilst trying to make a URL from '"
- + ((url != null) ? url : "<null>") + "'");
+ Cache.log.warn("Problem whilst trying to make a URL from '"
+ + ((url != null) ? url : "<null>") + "'");
Cache.log
.warn("This was probably due to a malformed comma separated list"
+ " in the "
}
} catch (Exception ex)
{
- Cache.log.warn(
- "Error parsing comma separated list of urls in "
- + JWS2HOSTURLS + " preference.", ex);
+ Cache.log.warn("Error parsing comma separated list of urls in "
+ + JWS2HOSTURLS + " preference.", ex);
}
return urls;
}
{
try
{
- compbio.ws.client.WSTester.main(new String[]
- { "-h=" + foo.toString() });
+ compbio.ws.client.WSTester
+ .main(new String[] { "-h=" + foo.toString() });
} catch (Exception e)
{
e.printStackTrace();
if (getInvalidServiceUrls() != null
&& getInvalidServiceUrls().size() > 0)
{
- ermsg.append("URLs that could not be contacted: \n");
+ ermsg.append(MessageManager.getString("warn.urls_not_contacted")
+ + ": \n");
for (String svcurl : getInvalidServiceUrls())
{
if (list)
if (getUrlsWithoutServices() != null
&& getUrlsWithoutServices().size() > 0)
{
- ermsg.append("URLs without any JABA Services : \n");
+ ermsg.append(MessageManager.getString("warn.urls_no_jaba") + ": \n");
for (String svcurl : getUrlsWithoutServices())
{
if (list)