Prompt proper error message when creating test blocks for methods without definition.
1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/CreateTestBlockAction.java Mon Oct 17 14:56:02 2011 +0530
1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/CreateTestBlockAction.java Mon Oct 17 15:09:02 2011 +0530
1.3 @@ -165,21 +165,11 @@
1.4 }
1.5
1.6 if (selectedBlock == null) {
1.7 - int result = JOptionPane.showConfirmDialog(WindowManager.getDefault().getMainWindow(),
1.8 - "This seems to be an implementation method that can’t be called directly from a client.\nDo you want to continue?", "Warning", JOptionPane.OK_CANCEL_OPTION);
1.9 - if (result == JOptionPane.CANCEL_OPTION) {
1.10 - return;
1.11 - } else {
1.12 - selectedBlock = temp;
1.13 - }
1.14 + JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(), "Failed creating the test block; selected method might not be there in the specification", "Error", JOptionPane.ERROR_MESSAGE);
1.15 + return;
1.16 }
1.17 }
1.18 -
1.19 - if (selectedBlock == null) {
1.20 - JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(), "Failed creating the test block; selected method might not be there in the specification", "Error", JOptionPane.ERROR_MESSAGE);
1.21 - return;
1.22 - }
1.23 -
1.24 +
1.25 if (selectedBlock.getParent() != null) {
1.26 selectedName = selectedBlock.getParent().getName() + "." + selectedBlock.getName();
1.27 }