/**
* Displays the currently selected bucket's properties in the dialog {@link ItemPropertiesDialog}.
*/
private void listBucketProperties() {
final S3Bucket selectedBucket = currentSelectedBucket;
if (selectedBucket.getAcl() == null || !selectedBucket.isLocationKnown()) {
// Retrieve all a bucket's details before displaying the summary.
runInBackgroundThread(new Runnable() {
public void run() {
startProgressDialog("Retrieving details for bucket " + selectedBucket.getName());
try {
try {
if (selectedBucket.getAcl() == null) {
selectedBucket.setAcl(
s3ServiceMulti.getS3Service().getBucketAcl(
selectedBucket));
}
if (!selectedBucket.isLocationKnown()) {
selectedBucket.setLocation(
s3ServiceMulti.getS3Service().getBucketLocation(
selectedBucket.getName()));
}
if (!selectedBucket.isRequesterPaysKnown()) {
selectedBucket.setRequesterPays(
s3ServiceMulti.getS3Service().isRequesterPaysBucket(
selectedBucket.getName()));
}
} catch (S3ServiceException e) {
// Retrieving details for a third-party bucket will
// often fail when ACL or Location is retrieved,
// ignore these failures.