Commit 5bc6f96
Rename setDirtyIndicatorCloseStyle to setDirtyIndicatorStyle
"CloseStyle" leaks the implementation detail that the bullet occupies
the close button area. The shorter name describes the feature, not
the mechanism.
Also fix: clicking the dirty indicator no longer closes the tab unless
close is independently enabled (via SWT.CLOSE or setShowClose(true)).
Previously, enabling dirtyIndicatorStyle would implicitly make dirty
tabs closeable. The dirty indicator is now purely visual.
- Guard onMouse MouseDown/MouseUp close handling with showClose check
- Update _getToolTip to only show "Close" when close is enabled
- Add Snippet394 to Snippets.md
- Add tests for dirty indicator close behavior in CTabFolder tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 792dbd3 commit 5bc6f96
6 files changed
Lines changed: 143 additions & 24 deletions
File tree
- bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom
- examples/org.eclipse.swt.snippets
- src/org/eclipse/swt/snippets
- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
Lines changed: 22 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1896 | 1896 | | |
1897 | 1897 | | |
1898 | 1898 | | |
1899 | | - | |
| 1899 | + | |
1900 | 1900 | | |
1901 | 1901 | | |
1902 | 1902 | | |
| |||
1977 | 1977 | | |
1978 | 1978 | | |
1979 | 1979 | | |
1980 | | - | |
| 1980 | + | |
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
| |||
3671 | 3671 | | |
3672 | 3672 | | |
3673 | 3673 | | |
3674 | | - | |
| 3674 | + | |
3675 | 3675 | | |
3676 | 3676 | | |
3677 | | - | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
3678 | 3684 | | |
3679 | 3685 | | |
3680 | 3686 | | |
3681 | 3687 | | |
3682 | 3688 | | |
3683 | | - | |
3684 | | - | |
| 3689 | + | |
3685 | 3690 | | |
3686 | 3691 | | |
3687 | 3692 | | |
| |||
3691 | 3696 | | |
3692 | 3697 | | |
3693 | 3698 | | |
3694 | | - | |
| 3699 | + | |
3695 | 3700 | | |
3696 | | - | |
3697 | | - | |
| 3701 | + | |
| 3702 | + | |
3698 | 3703 | | |
3699 | 3704 | | |
3700 | 3705 | | |
3701 | | - | |
| 3706 | + | |
3702 | 3707 | | |
3703 | | - | |
| 3708 | + | |
3704 | 3709 | | |
3705 | 3710 | | |
3706 | 3711 | | |
3707 | 3712 | | |
3708 | 3713 | | |
3709 | 3714 | | |
3710 | | - | |
| 3715 | + | |
3711 | 3716 | | |
3712 | 3717 | | |
3713 | | - | |
| 3718 | + | |
3714 | 3719 | | |
3715 | 3720 | | |
3716 | 3721 | | |
| |||
4048 | 4053 | | |
4049 | 4054 | | |
4050 | 4055 | | |
4051 | | - | |
4052 | | - | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
4053 | 4060 | | |
4054 | 4061 | | |
4055 | 4062 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 111 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
942 | 1053 | | |
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
0 commit comments