From: jprocter Date: Mon, 20 Sep 2010 06:43:12 +0000 (+0000) Subject: ensure host is shown for all non-host indexed submenus X-Git-Tag: Release_2_6~23 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dc300f5fce52bddc74ebe18864c12bfdb4beef64;p=jalview.git ensure host is shown for all non-host indexed submenus --- diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index d6e4d78..1f3eee9 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -404,7 +404,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI atpoint.setToolTipText(service.getActionText()); } } - if (!byhost && !hostLabels.contains(host + service.getActionText())) + if (!byhost && !hostLabels.contains(host + service.serviceType+service.getActionText())) { // add a marker indicating where this service is hosted // relies on services from the same host being listed in a contiguous @@ -416,7 +416,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI atpoint.add(hitm = new JMenuItem(host)); hitm.setForeground(Color.blue); } - hostLabels.addElement(lasthost=host); + hostLabels.addElement(host + service.serviceType+service.getActionText()); } msacl.attachWSMenuEntry(atpoint, service, alignFrame); /*