Find the user name automatically in ApproveXxxx annotations instead of asking the developer
1.1 --- a/PLSQL/Annotation/src/org/netbeans/modules/plsql/annotation/annotations/PlsqlAnnotation.java Wed Jun 13 18:29:44 2012 +0200
1.2 +++ b/PLSQL/Annotation/src/org/netbeans/modules/plsql/annotation/annotations/PlsqlAnnotation.java Thu Jun 14 14:44:28 2012 +0530
1.3 @@ -159,12 +159,7 @@
1.4 }
1.5
1.6 private boolean addApproveMarker(Document doc, int ignoreOffset) {
1.7 - String user = JOptionPane.showInputDialog(WindowManager.getDefault().getMainWindow(), "Please insert the User Id", "Information", JOptionPane.INFORMATION_MESSAGE);
1.8 - if (user == null || user.trim().equals("")) {
1.9 - return false;
1.10 - }
1.11 -
1.12 - String key = "--@" + getIgnoreKey() + "(" + user + "," + getDateTime() + ")\n";
1.13 + String key = "--@" + getIgnoreKey() + "(" + System.getProperty("user.name") + "," + getDateTime() + ")\n";
1.14 return addMarker(doc, key, ignoreOffset);
1.15 }
1.16