Lines 125-136
public class RollbackAction extends Cont
Link Here
|
125 |
}else{ |
125 |
}else{ |
126 |
logger.output(list.get(0)); |
126 |
logger.output(list.get(0)); |
127 |
if (HgCommand.hasHistory(root)) { |
127 |
if (HgCommand.hasHistory(root)) { |
128 |
int response = JOptionPane.showOptionDialog(null, |
128 |
descriptor = new NotifyDescriptor.Confirmation(NbBundle.getMessage(RollbackAction.class, "MSG_ROLLBACK_CONFIRM_UPDATE_QUERY")); // NOI18N |
129 |
NbBundle.getMessage(RollbackAction.class,"MSG_ROLLBACK_CONFIRM_UPDATE_QUERY") , // NOI18N |
129 |
descriptor.setTitle(NbBundle.getMessage(RollbackAction.class, "MSG_ROLLBACK_CONFIRM")); // NOI18N |
130 |
NbBundle.getMessage(RollbackAction.class,"MSG_ROLLBACK_CONFIRM_UPDATE"), // NOI18N |
130 |
descriptor.setMessageType(JOptionPane.WARNING_MESSAGE); |
131 |
JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,null, null, null); |
131 |
descriptor.setOptionType(NotifyDescriptor.YES_NO_OPTION); |
132 |
|
132 |
res = DialogDisplayer.getDefault().notify(descriptor); |
133 |
if( response == JOptionPane.YES_OPTION){ |
133 |
if (res == NotifyDescriptor.YES_OPTION) { |
134 |
logger.output( |
134 |
logger.output( |
135 |
NbBundle.getMessage(RollbackAction.class, |
135 |
NbBundle.getMessage(RollbackAction.class, |
136 |
"MSG_ROLLBACK_FORCE_UPDATE", root.getAbsolutePath())); // NOI18N |
136 |
"MSG_ROLLBACK_FORCE_UPDATE", root.getAbsolutePath())); // NOI18N |