private void createBucketAction() {
String proposedNewName =
s3ServiceMulti.getAWSCredentials().getAccessKey().toLowerCase()
+ "." + "bucket-name";
CreateBucketDialog dialog = new CreateBucketDialog(proposedNewName, ownerFrame, this);
dialog.setVisible(true);
if (!dialog.getOkClicked()) {
return;
}
final S3Bucket newBucket = new S3Bucket(dialog.getBucketName(), dialog.getBucketLocation());
dialog.dispose();
runInBackgroundThread(new Runnable() {
public void run() {
if (s3ServiceMulti.createBuckets(new S3Bucket[] { newBucket })) {
int modelIndex = bucketTableModel.getBucketIndexByName(newBucket.getName());