newNameTextBox.getText() ) ) {
serv.copyOrRemoveSnapshot( packageName,
snapshotName,
false,
newNameTextBox.getText(),
new GenericCallback() {
public void onSuccess(Object data) {
copy.hide();
Window.alert( Format.format( constants.CreatedSnapshot0ForPackage1(),
newNameTextBox.getText(),
packageName ) );
}
} );
}
} else {
for ( RadioButton rb : options ) {
if ( rb.isChecked() ) {
final String newName = rb.getText();
serv.copyOrRemoveSnapshot( packageName,
snapshotName,
false,
newName,
new GenericCallback() {
public void onSuccess(Object data) {
copy.hide();
Window.alert( Format.format( constants.Snapshot0ForPackage1WasCopiedFrom2(),
newName,
packageName,