}
System.out.println("Discovered service: " + jwsservers + " "
+ srv.toString());
- services.add(new Jws2Instance(jwsservers, srv.toString(), service2));
+ Jws2Instance service = new Jws2Instance(jwsservers, srv.toString(), service2);
+
+ services.add(service);
+ service.getParamStore();
}
public class Jws2Instance
});
wsmenu.add(jws2al);
+
}
private void populateWSMenuEntry(JMenu jws2al, final AlignFrame alignFrame)
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);
/*