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