Commit 000260f
committed
Do checks inside the job and compute the classpath entries
Currently some checks are performed outside the update job, for example
the model is fetched and the javanature. These values can change between
submit the data to the job and it actually pick it up.
This now moves these check into the job itself and uses a concurrent
queue to prevent the need for synchronized. Also results are collected
inside a Map so if new update request are received in the meanwhile we
discard the previous computed values.
Beside that, entries are now eagerly computed as they are required
anyways when we set the classpath and we can catch problems that occur
here instead of just swallow them.
Also the job now react to cancel request much better than before.1 parent 53dcd41 commit 000260f
4 files changed
Lines changed: 78 additions & 67 deletions
File tree
- ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core
Lines changed: 66 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
502 | 505 | | |
503 | 506 | | |
504 | 507 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 508 | + | |
518 | 509 | | |
519 | 510 | | |
520 | 511 | | |
521 | 512 | | |
522 | | - | |
523 | | - | |
| 513 | + | |
| 514 | + | |
524 | 515 | | |
525 | 516 | | |
526 | 517 | | |
527 | | - | |
528 | | - | |
| 518 | + | |
529 | 519 | | |
530 | 520 | | |
531 | 521 | | |
| |||
539 | 529 | | |
540 | 530 | | |
541 | 531 | | |
542 | | - | |
| 532 | + | |
543 | 533 | | |
544 | 534 | | |
545 | 535 | | |
546 | 536 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
557 | 559 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
562 | 575 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
567 | 585 | | |
568 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
569 | 595 | | |
570 | 596 | | |
571 | 597 | | |
572 | 598 | | |
573 | 599 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
579 | 603 | | |
580 | 604 | | |
581 | 605 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| |||
Lines changed: 9 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
| |||
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
218 | | - | |
| 225 | + | |
219 | 226 | | |
220 | | - | |
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
| |||
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
281 | | - | |
282 | | - | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | 735 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
0 commit comments