Skip to content

Commit 98b33eb

Browse files
vogellaclaude
andcommitted
Add N&N for bullet-style dirty indicator in CTabFolder
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7999829 commit 98b33eb

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

15.6 KB
Loading
13.4 KB
Loading

news/4.40/platform_isv.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,25 @@ A special thanks to everyone who [contributed to Eclipse-Platform](acknowledgeme
77
## Platform Changes
88
-->
99

10-
<!--
1110
---
1211
## SWT Changes
13-
-->
12+
13+
### Bullet-style Dirty Indicator for CTabFolder Tabs
14+
<!-- https://github.com/eclipse-platform/eclipse.platform.swt/pull/3141 -->
15+
<details>
16+
<summary>Contributors</summary>
17+
18+
- [Lars Vogel](https://github.com/vogella)
19+
</details>
20+
21+
`CTabFolder` now supports an opt-in dirty indicator that shows a filled bullet dot (●) at the close button location for tabs with unsaved changes, replacing the traditional `*` prefix approach. On hover, the bullet transforms into the close button, matching VS Code behavior.
22+
23+
New API:
24+
- `CTabFolder.setDirtyIndicatorStyle(boolean)` — enables/disables the bullet-on-close-button style
25+
- `CTabItem.setShowDirty(boolean)` — marks an item as having unsaved changes
26+
27+
The feature is disabled by default to preserve backward compatibility.
28+
29+
![Dirty Indicator Light Theme](images/dirty-indicator-light.png)
30+
31+
![Dirty Indicator Dark Theme](images/dirty-indicator-dark.png)

0 commit comments

Comments
 (0)