Search in sources :

Example 6 with SpringCloudApp

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);
    }
}
Also used : SpringCloudApp(com.microsoft.azure.toolkit.lib.springcloud.SpringCloudApp)

Aggregations

SpringCloudApp (com.microsoft.azure.toolkit.lib.springcloud.SpringCloudApp)6 SpringCloudCluster (com.microsoft.azure.toolkit.lib.springcloud.SpringCloudCluster)3 SpringCloudAppConfig (com.microsoft.azure.toolkit.lib.springcloud.config.SpringCloudAppConfig)2 Optional (java.util.Optional)2 ConfigurationSettingsEditorWrapper (com.intellij.execution.impl.ConfigurationSettingsEditorWrapper)1 DataManager (com.intellij.ide.DataManager)1 DataContext (com.intellij.openapi.actionSystem.DataContext)1 Project (com.intellij.openapi.project.Project)1 IActionsContributor (com.microsoft.azure.toolkit.ide.common.IActionsContributor)1 ResourceCommonActionsContributor (com.microsoft.azure.toolkit.ide.common.action.ResourceCommonActionsContributor)1 AzureArtifact (com.microsoft.azure.toolkit.intellij.common.AzureArtifact)1 AzureArtifactComboBox (com.microsoft.azure.toolkit.intellij.common.AzureArtifactComboBox)1 AzureArtifactManager (com.microsoft.azure.toolkit.intellij.common.AzureArtifactManager)1 ItemReference (com.microsoft.azure.toolkit.intellij.common.AzureComboBox.ItemReference)1 AzureFormPanel (com.microsoft.azure.toolkit.intellij.common.AzureFormPanel)1 SubscriptionComboBox (com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox)1 SpringCloudAppComboBox (com.microsoft.azure.toolkit.intellij.springcloud.component.SpringCloudAppComboBox)1 SpringCloudClusterComboBox (com.microsoft.azure.toolkit.intellij.springcloud.component.SpringCloudClusterComboBox)1 SpringCloudAppCreationDialog (com.microsoft.azure.toolkit.intellij.springcloud.creation.SpringCloudAppCreationDialog)1 Azure (com.microsoft.azure.toolkit.lib.Azure)1