if (details == null) { // maybe we have cached data we can reuse
return;
}
cancelLoadingJobs();
locationsJob = new LoadListJobSupport("Loading cloud locations", locationList) {
@Override
protected List<?> loadList() {
if (computeClient == null) return Collections.EMPTY_LIST;
return JClouds.sortedLocationList(computeClient.listAssignableLocations());
}
};
hardwareJob = new LoadListJobSupport("Loading cloud hardware", hardwareList) {
@Override
protected List<?> loadList() {
if (computeClient == null) return Collections.EMPTY_LIST;
return JClouds.sortedList(computeClient.listHardwareProfiles());