Commit 0fce75f
committed
Move Splash initialization to EDT and make it no longer modal
- about 100ms faster startup (main method duration measured) and
technically more correct anyway
- use JFrame to get double buffering (no progress bar flicker during
repaint) and we can use the opportunity to initialize swing
asynchronously while NB is busy bootstrapping.
- other change: splash window is no longer modal
- code renovations
most changes come from the fact that the model needed to be extracted
from UI code so that it can be updated from any thread while the UI
paints on EDT.1 parent 462e4e1 commit 0fce75f
File tree
3 files changed
+296
-331
lines changed- platform/core.startup/src/org/netbeans/core/startup
3 files changed
+296
-331
lines changedLines changed: 6 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
166 | | - | |
| 165 | + | |
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
| |||
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
319 | | - | |
320 | 318 | | |
321 | 319 | | |
322 | 320 | | |
| |||
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | | - | |
| 348 | + | |
351 | 349 | | |
352 | 350 | | |
353 | 351 | | |
| |||
380 | 378 | | |
381 | 379 | | |
382 | 380 | | |
383 | | - | |
| 381 | + | |
384 | 382 | | |
385 | 383 | | |
386 | 384 | | |
| |||
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
403 | | - | |
| 401 | + | |
404 | 402 | | |
405 | 403 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | 404 | | |
410 | 405 | | |
411 | 406 | | |
412 | | - | |
413 | 407 | | |
414 | 408 | | |
415 | 409 | | |
| |||
440 | 434 | | |
441 | 435 | | |
442 | 436 | | |
443 | | - | |
444 | 437 | | |
445 | 438 | | |
446 | 439 | | |
| |||
493 | 486 | | |
494 | 487 | | |
495 | 488 | | |
496 | | - | |
| 489 | + | |
497 | 490 | | |
498 | 491 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | 492 | | |
503 | 493 | | |
504 | 494 | | |
| |||
Lines changed: 9 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
336 | | - | |
| 335 | + | |
337 | 336 | | |
338 | | - | |
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
| |||
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
| |||
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
365 | | - | |
366 | | - | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
| 369 | + | |
376 | 370 | | |
377 | 371 | | |
378 | 372 | | |
| |||
423 | 417 | | |
424 | 418 | | |
425 | 419 | | |
426 | | - | |
| 420 | + | |
427 | 421 | | |
428 | 422 | | |
429 | 423 | | |
| |||
0 commit comments