* for moment we keep them separate.
*/
JMenu atpoint;
- List<Jws2Instance> enumerableServices = new ArrayList<>();
+ List<ServiceWithParameters> enumerableServices = new ArrayList<>();
// jws2al.removeAll();
Map<String, ServiceWithParameters> preferredHosts = new HashMap<>();
Map<String, List<ServiceWithParameters>> alternates = new HashMap<>();
- for (Jws2Instance service : services.toArray(new Jws2Instance[0]))
+ for (ServiceWithParameters service : getServices())
{
// TODO: check this behaves with refactored serviceType to getName
if (!isRecalculable(service.getName()))
*/
private void addEnumeratedServices(final JMenu jws2al,
final AlignFrame alignFrame,
- List<Jws2Instance> enumerableServices)
+ List<ServiceWithParameters> enumerableServices)
{
boolean byhost = Cache.getDefault("WSMENU_BYHOST", false),
bytype = Cache.getDefault("WSMENU_BYTYPE", false);
List<String> hostLabels = new ArrayList<>();
Hashtable<String, String> lasthostFor = new Hashtable<>();
- Hashtable<String, ArrayList<Jws2Instance>> hosts = new Hashtable<>();
+ Hashtable<String, ArrayList<ServiceWithParameters>> hosts = new Hashtable<>();
ArrayList<String> hostlist = new ArrayList<>();
- for (Jws2Instance service : enumerableServices)
+ for (ServiceWithParameters service : enumerableServices)
{
- ArrayList<Jws2Instance> hostservices = hosts
+ ArrayList<ServiceWithParameters> hostservices = hosts
.get(service.getHostURL());
if (hostservices == null)
{