break;
}
}
}
if ( promptForOptions ) {
final OverwritePromptDialog overwriteDialog = new OverwritePromptDialog();
final IDialogCallback callback = new IDialogCallback() {
public void cancelPressed() {
event.setMessage( "Cancel" );
EventBusUtil.EVENT_BUS.fireEvent( event );
overwriteDialog.hide();
}
public void okPressed() {
performSave( clipBoard, overwriteDialog.getOverwriteMode() );
}
};
overwriteDialog.setCallback( callback );
overwriteDialog.center();
} else {
if ( !cutSameDir ) {
performSave( clipBoard, 2 );
} else {
event.setMessage( "Cancel" );