MsaWSClient msacl = new MsaWSClient();
Vector hostLabels = new Vector();
jws2al.removeAll();
+ String lasthost=null;
for (final Jws2Instance service : services)
{
atpoint = jws2al;
// group
JMenuItem hitm;
atpoint.addSeparator();
- atpoint.add(hitm = new JMenuItem(host));
- hitm.setForeground(Color.blue);
- hostLabels.addElement(host);
+ if (lasthost==null || !lasthost.equals(host))
+ {
+ atpoint.add(hitm = new JMenuItem(host));
+ hitm.setForeground(Color.blue);
+ }
+ hostLabels.addElement(lasthost=host);
}
msacl.attachWSMenuEntry(atpoint, service, alignFrame);
/*