Commit fe1a1b4
committed
Support new SWT dirty indicator in StackRenderer
Adds a preference to enable the new bullet-style dirty indicator for
tabs,
which overlays the close button.
- StackRenderer now calls setDirtyIndicatorStyle on CTabFolder level.
- CTabItem.setShowDirty is updated on individual items.
- Preference change at runtime is handled to update all visible stacks.
- Asterisk prefix is skipped if the new indicator is enabled.
- Reflection is used for the new SWT methods for compatibility.
Fixes #25681 parent dceb45a commit fe1a1b4
5 files changed
Lines changed: 87 additions & 1 deletion
File tree
- bundles
- org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt
- org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal
- dialogs
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
79 | 94 | | |
80 | 95 | | |
81 | 96 | | |
| |||
Lines changed: 52 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
443 | 446 | | |
444 | 447 | | |
445 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
446 | 454 | | |
447 | 455 | | |
448 | 456 | | |
| |||
704 | 712 | | |
705 | 713 | | |
706 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
707 | 748 | | |
708 | 749 | | |
709 | 750 | | |
| |||
715 | 756 | | |
716 | 757 | | |
717 | 758 | | |
| 759 | + | |
718 | 760 | | |
719 | 761 | | |
720 | 762 | | |
| |||
741 | 783 | | |
742 | 784 | | |
743 | 785 | | |
| 786 | + | |
744 | 787 | | |
745 | 788 | | |
746 | 789 | | |
| |||
751 | 794 | | |
752 | 795 | | |
753 | 796 | | |
754 | | - | |
| 797 | + | |
| 798 | + | |
755 | 799 | | |
756 | 800 | | |
757 | 801 | | |
| |||
794 | 838 | | |
795 | 839 | | |
796 | 840 | | |
| 841 | + | |
797 | 842 | | |
798 | 843 | | |
799 | 844 | | |
| |||
895 | 940 | | |
896 | 941 | | |
897 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
898 | 948 | | |
899 | 949 | | |
900 | 950 | | |
| |||
1060 | 1110 | | |
1061 | 1111 | | |
1062 | 1112 | | |
| 1113 | + | |
1063 | 1114 | | |
1064 | 1115 | | |
1065 | 1116 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
492 | 494 | | |
493 | 495 | | |
494 | 496 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
273 | 286 | | |
274 | 287 | | |
275 | 288 | | |
| |||
455 | 468 | | |
456 | 469 | | |
457 | 470 | | |
| 471 | + | |
458 | 472 | | |
459 | 473 | | |
460 | 474 | | |
| |||
605 | 619 | | |
606 | 620 | | |
607 | 621 | | |
| 622 | + | |
| 623 | + | |
608 | 624 | | |
609 | 625 | | |
610 | 626 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
| |||
0 commit comments