Search in sources :

Example 1 with SpringCloudAppEntity

use of com.microsoft.azure.toolkit.lib.springcloud.SpringCloudAppEntity in project azure-tools-for-java by Microsoft.

the class AbstractSpringCloudAppInfoPanel method onClusterChanged.

private void onClusterChanged(final ItemEvent e) {
    if (e.getStateChange() == ItemEvent.SELECTED || e.getStateChange() == ItemEvent.DESELECTED) {
        final SpringCloudCluster c = (SpringCloudCluster) e.getItem();
        final String appName = StringUtils.firstNonBlank(this.getTextName().getName(), this.defaultAppName);
        final SpringCloudApp app = c.app(new SpringCloudAppEntity(appName, c.entity()));
        this.onAppChanged(app);
    }
}
Also used : SpringCloudCluster(com.microsoft.azure.toolkit.lib.springcloud.SpringCloudCluster) SpringCloudAppEntity(com.microsoft.azure.toolkit.lib.springcloud.SpringCloudAppEntity) SpringCloudApp(com.microsoft.azure.toolkit.lib.springcloud.SpringCloudApp)

Aggregations

SpringCloudApp (com.microsoft.azure.toolkit.lib.springcloud.SpringCloudApp)1 SpringCloudAppEntity (com.microsoft.azure.toolkit.lib.springcloud.SpringCloudAppEntity)1 SpringCloudCluster (com.microsoft.azure.toolkit.lib.springcloud.SpringCloudCluster)1