use of com.microsoft.azure.toolkit.lib.compute.network.Network in project azure-tools-for-java by Microsoft.
the class VirtualNetworkComboBox method resetResourceDraft.
private void resetResourceDraft() {
final Network value = getValue();
if (value != null && !StringUtils.equals(value.status(), IAzureBaseResource.Status.DRAFT)) {
draftNetwork = DraftNetwork.getDefaultNetworkDraft();
draftNetwork.setRegion(region);
draftNetwork.setResourceGroup(Optional.ofNullable(resourceGroup).map(ResourceGroup::getName).orElse(null));
draftNetwork.setSubscriptionId(Optional.ofNullable(subscription).map(Subscription::getId).orElse(null));
setValue(draftNetwork);
}
}
use of com.microsoft.azure.toolkit.lib.compute.network.Network in project azure-tools-for-java by Microsoft.
the class VMCreationDialog method onNetworkChanged.
private void onNetworkChanged(final ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED && e.getItem() instanceof Network) {
final Network network = (Network) e.getItem();
this.cbSubnet.setNetwork(network);
}
}
Aggregations