Change the dialog when asked if user wants to commit
authorSubhashini Sooriarachchi <subslk@netbeans.org>
Fri, 07 Jun 2013 14:04:42 +0530
changeset 44038f178fec8dd
parent 439 386961bb5322
child 441 d71badb6eb56
Change the dialog when asked if user wants to commit
PLSQL/Execution/src/org/netbeans/modules/plsql/execution/impl/DatabaseConnectionMediatorDefault.java
     1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/impl/DatabaseConnectionMediatorDefault.java	Fri Jun 07 09:47:02 2013 +0530
     1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/impl/DatabaseConnectionMediatorDefault.java	Fri Jun 07 14:04:42 2013 +0530
     1.3 @@ -146,9 +146,10 @@
     1.4                  transaction.commitTransaction();
     1.5              } else {
     1.6                  String msg = "Commit open transactions for " + connection.getDisplayName() + "?";
     1.7 -                String title = "Commit open transaction?";
     1.8 +                String title = "Open transactions!";
     1.9 +                Object[] options = {"Commit", "Rollback", "Cancel"};
    1.10                  int dialogAnswer = JOptionPane.showOptionDialog(null, msg, title, JOptionPane.YES_NO_CANCEL_OPTION,
    1.11 -                        JOptionPane.QUESTION_MESSAGE, null, null, null);
    1.12 +                        JOptionPane.QUESTION_MESSAGE, null, options, null);
    1.13                  if (dialogAnswer == JOptionPane.YES_OPTION) {
    1.14                      commitTransaction();
    1.15                  } else if (dialogAnswer == JOptionPane.NO_OPTION) {