Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4119e86

Browse files
author
zhourenjian
committed
Support delta *.js update to avoid re-downloading tons of *.js
Pack more *.js into fewer *.z.js to increase *.js loading
1 parent7fc43a1 commit4119e86

File tree

2 files changed

+30
-35
lines changed

2 files changed

+30
-35
lines changed

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

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,9 @@ $wt = org.eclipse.swt;
317317

318318
varpath=ClazzLoader.getClasspathFor("org.eclipse.swt.*");
319319

320-
// The core.z.js should already intialized
321-
ClazzLoader.loadZJar(path+"events.z.js",[
320+
varisDebugging=(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-
varisDebugging=(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
varw="$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
varlPath=ClazzLoader.getClasspathFor("org.eclipse.swt.layout.*");
528529
varl="$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"

‎sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/NotificationCorner.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public void run() {
180180
}
181181

182182
updateEvents();
183+
184+
bringToTop(window.currentTopZIndex);
183185
}
184186

185187
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp