use of com.microsoft.azuretools.azureexplorer.forms.CreateBlobContainerForm in project azure-tools-for-java by Microsoft.
the class CreateBlobContainer method actionPerformed.
@Override
public void actionPerformed(NodeActionEvent e) {
String connectionString;
if (parent instanceof BlobModule) {
connectionString = StorageClientSDKManager.getConnectionString(((BlobModule) parent).getStorageAccount());
} else {
connectionString = StorageClientSDKManager.getConnectionString(((StorageNode) parent).getStorageAccount());
}
CreateBlobContainerForm form = new CreateBlobContainerForm(PluginUtil.getParentShell(), connectionString);
if (parent instanceof StorageNode) {
form.setSubscription(new SubscriptionDetail(((StorageNode) parent).getSubscriptionId(), null, null, true));
}
form.setOnCreate(new Runnable() {
@Override
public void run() {
parent.removeAllChildNodes();
parent.load(false);
}
});
form.open();
}
Aggregations