use of com.microsoft.azure.toolkit.lib.springcloud.SpringCloudApp in project azure-tools-for-java by Microsoft.
the class SpringCloudAppComboBox method addLocalItem.
public void addLocalItem(SpringCloudApp app) {
final SpringCloudApp cached = this.localItems.get(app.getCluster().name());
if (Objects.isNull(cached) || !Objects.equals(app.name(), cached.name())) {
this.localItems.put(app.getCluster().name(), app);
final List<SpringCloudApp> items = this.getItems();
items.add(0, app);
this.setItems(items);
}
}
Aggregations