@@ -317,8 +317,9 @@ $wt = org.eclipse.swt;
317317
318318 var path = ClazzLoader . getClasspathFor ( "org.eclipse.swt.*" ) ;
319319
320- // The core.z.js should already intialized
321- ClazzLoader . loadZJar ( path + "events.z.js" , [
320+ var isDebugging = ( window [ "swt.debugging" ] == true ) ;
321+ if ( ! isDebugging ) {
322+ ClazzLoader . jarClasspath ( path + "basic.z.js" , [
322323 "org.eclipse.swt.internal.SWTEventListener" ,
323324 "$.SWTEventObject" ,
324325 "org.eclipse.swt.widgets.Event" ,
@@ -368,12 +369,8 @@ $wt = org.eclipse.swt;
368369 "$.TreeListener" ,
369370 "$.TreeAdapter" ,
370371 "$.VerifyListener" ,
371- "org.eclipse.swt.widgets.EventTable"
372- ] ) ;
373-
374- var isDebugging = ( window [ "swt.debugging" ] == true ) ;
375- if ( ! isDebugging ) {
376- ClazzLoader . jarClasspath ( path + "basic.z.js" , [
372+ "org.eclipse.swt.widgets.EventTable" ,
373+
377374 "$wt.internal.SerializableCompatibility" ,
378375 "$.CloneableCompatibility" ,
379376 "$.RunnableCompatibility" ,
@@ -403,9 +400,8 @@ if (!isDebugging) {
403400 "$.FontMetrics" ,
404401 "$.Font" ,
405402
406- "$wt.widgets.Monitor"
407- ] ) ;
408- ClazzLoader . jarClasspath ( path + "more.z.js" , [
403+ "$wt.widgets.Monitor" ,
404+
409405 "$wt.internal.ResizeHandler" ,
410406 "$wt.internal.ResizeSystem" ,
411407
@@ -446,16 +442,33 @@ if (!isDebugging) {
446442 "$.Shell" ,
447443 "$.Dialog"
448444 ] ) ;
445+ ClazzLoader . jarClasspath ( wPath + "more.z.js" , [
446+ "$wt.widgets.Label" ,
447+ "$.Button" ,
448+ "$.Text" ,
449+ "$.Group" ,
450+ "$.TabItem" ,
451+ "$.TabFolder" ,
452+ "$.TrayItem" ,
453+ "$.Tray" ,
454+ "$.MenuItem" ,
455+ "$.Menu" ,
456+ "$.Link" ,
457+ "$.Combo" ,
458+ "$wt.browser.Browser" ,
459+ "$wt.program.Program" ,
460+ "$wt.layout.GridData" ,
461+ "$.GridLayout" ,
462+ "$.FillData" ,
463+ "$.FillLayout"
464+ ] ) ;
465+
449466 var w = "$wt.widgets." ;
450467 ClazzLoader . jarClasspath ( wPath + "Tree.z.js" , [
451468 w + "TreeItem" ,
452469 "$.TreeColumn" ,
453470 "$.Tree"
454471 ] ) ;
455- ClazzLoader . jarClasspath ( wPath + "Tray.z.js" , [
456- w + "TrayItem" ,
457- "$.Tray"
458- ] ) ;
459472 ClazzLoader . jarClasspath ( wPath + "ToolBar.z.js" , [
460473 w + "ToolItem" ,
461474 "$.ToolBar"
@@ -507,33 +520,13 @@ if (!isDebugging) {
507520 "$wt.internal.dnd.ScaleDND" ,
508521 w + "Scale"
509522 ] ) ;
510- ClazzLoader . jarClasspath ( wPath + "Menu.z.js" , [
511- w + "MenuItem" ,
512- "$.Menu"
513- ] ) ;
514523 ClazzLoader . jarClasspath ( wPath + "CoolBar.z.js" , [
515524 w + "CoolItem" ,
516525 "$.CoolBar"
517526 ] ) ;
518- ClazzLoader . jarClasspath ( wPath + "Common.z.js" , [
519- w + "Label" ,
520- "$.Button" ,
521- "$.Text" ,
522- "$.Group" ,
523- "$.TabItem" ,
524- "$.TabFolder"
525- ] ) ;
526527
527528 var lPath = ClazzLoader . getClasspathFor ( "org.eclipse.swt.layout.*" ) ;
528529 var l = "$wt.layout." ;
529- ClazzLoader . jarClasspath ( lPath + "GridLayout.z.js" , [
530- l + "GridData" ,
531- "$.GridLayout"
532- ] ) ;
533- ClazzLoader . jarClasspath ( lPath + "FillLayout.z.js" , [
534- l + "FillData" ,
535- "$.FillLayout"
536- ] ) ;
537530 ClazzLoader . jarClasspath ( lPath + "RowLayout.z.js" , [
538531 l + "RowData" ,
539532 "$.RowLayout"
0 commit comments