File: js-problem-java8

package info (click to toggle)
libjsyntaxpane-java 0.9.6~r156-7.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,428 kB
  • sloc: java: 6,108; xml: 41; sh: 14; makefile: 11; javascript: 4
file content (22 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (4)
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
+}