X Tutup
Skip to content

Commit aee9134

Browse files
author
jossonsmith
committed
Add debug option so that there is no need to repack those (widget).z.js while debugging
1 parent 6a25ded commit aee9134

File tree

1 file changed

+3
-1
lines changed
  • sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt

1 file changed

+3
-1
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/package.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ $wt = org.eclipse.swt;
2121
// The core.z.js should already intialized
2222
ClazzLoader.loadZJar (path + "events.z.js", "org.eclipse.swt.widgets.EventTable");
2323

24-
//if (false)
24+
var isDebugging = (window["swt.debugging"] == true);
25+
if (!isDebugging) {
2526
ClazzLoader.jarClasspath (path + "basic.z.js", [
2627
"$wt.internal.SerializableCompatibility",
2728
"$.CloneableCompatibility",
@@ -186,6 +187,7 @@ $wt = org.eclipse.swt;
186187
"$.SubList"
187188
]);
188189
*/
190+
} // end of !isDebugging
189191

190192
}) ();
191193

0 commit comments

Comments
 (0)
X Tutup