1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
---
src/main/resources/META-INF/services/jsyntaxpane/scripts/insertdate.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: b/src/main/resources/META-INF/services/jsyntaxpane/scripts/insertdate.js
===================================================================
--- a/src/main/resources/META-INF/services/jsyntaxpane/scripts/insertdate.js
+++ b/src/main/resources/META-INF/services/jsyntaxpane/scripts/insertdate.js
@@ -1,8 +1,8 @@
// Import the needed java packages and classes
-importPackage(java.util);
-importClass(javax.swing.JOptionPane)
+//importPackage(java.util);
+//importClass(javax.swing.JOptionPane)
function putDate() {
- TARGET.replaceSelection("This is a dummy proc that inserts the Current Date:\n" + new Date());
+ TARGET.replaceSelection("This is a dummy proc that inserts the Current Date:\n" + new java.util.Date());
TARGET.replaceSelection("\nTab Size of doc = " + AU.getTabSize(TARGET));
-}
\ No newline at end of file
+}
|