* @throws CanceledException
*/
protected boolean askForCommitConfirmation() throws CanceledException {
final Boolean[] confirmed = {null};
ExtendedConfirmationDialog dlg = new ExtendedConfirmationDialog( SpringSupport.INSTANCE.getMessage( "form.model.commit.title" ), null, SpringSupport.INSTANCE.getMessage( "form.model.commit.message" ) ) {
@Override
protected void onConfirm() {
confirmed[0] = true;
}
@Override
protected void onNo() {
confirmed[0] = false;
}
};
dlg.showDialog();
if ( confirmed[0] == null ) {
throw new CanceledException();
} else {
return confirmed[0];