use of com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox in project azure-tools-for-java by Microsoft.
the class ApplicationInsightsNewDialog method createUIComponents.
private void createUIComponents() {
this.comboSub = new SubscriptionComboBox();
this.comboReg = new RegionComboBox();
}
use of com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox in project azure-tools-for-java by Microsoft.
the class CreateRedisCacheForm method createUIComponents.
private void createUIComponents() {
this.cbSubs = new SubscriptionComboBox();
this.cbLocations = new RegionComboBox();
}
use of com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox in project azure-tools-for-java by Microsoft.
the class RedisCreationDialog method createUIComponents.
private void createUIComponents() {
this.subscriptionComboBox = new SubscriptionComboBox();
this.resourceGroupComboBox = new ResourceGroupComboBox();
this.regionComboBox = new RegionComboBox() {
protected List<? extends Region> loadItems() {
if (Objects.nonNull(this.subscription)) {
return Azure.az(AzureRedis.class).listSupportedRegions(subscription.getId());
}
return Collections.emptyList();
}
};
this.redisNameTextField = new ValidationDebouncedTextInput();
this.pricingComboBox = new AzureComboBoxSimple<>(PricingTier::values);
}
use of com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox in project azure-tools-for-java by Microsoft.
the class CreateDeploymentForm method createUIComponents.
private void createUIComponents() {
this.subscriptionCb = new SubscriptionComboBox();
this.regionCb = new RegionComboBox();
}
use of com.microsoft.azure.toolkit.intellij.common.component.SubscriptionComboBox in project azure-tools-for-java by Microsoft.
the class AbstractSpringCloudAppInfoPanel method init.
protected void init() {
final SubscriptionComboBox selectorSubscription = this.getSelectorSubscription();
final SpringCloudClusterComboBox selectorCluster = this.getSelectorCluster();
final ValidationDebouncedTextInput textName = this.getTextName();
selectorSubscription.setRequired(true);
selectorSubscription.addItemListener(this::onSubscriptionChanged);
selectorCluster.setRequired(true);
selectorCluster.addItemListener(this::onClusterChanged);
textName.setRequired(true);
textName.setValue(this.defaultAppName);
textName.setValidator(() -> {
try {
validateSpringCloudAppName(textName.getValue(), this.cluster);
} catch (final IllegalArgumentException e) {
final AzureValidationInfoBuilder builder = AzureValidationInfo.builder();
return builder.input(textName).type(AzureValidationInfo.Type.ERROR).message(e.getMessage()).build();
}
return AzureValidationInfo.OK;
});
if (Objects.nonNull(this.cluster)) {
selectorSubscription.setValue(new ItemReference<>(this.cluster.subscriptionId(), Subscription::getId));
selectorCluster.setValue(new ItemReference<>(this.cluster.name(), IAzureResource::name));
}
}
Aggregations