Skip to content

[Cocoa] Remove deprecated scroller part constants#3432

Merged
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:remove-deprecated-scroller-part-constants
Jul 16, 2026
Merged

[Cocoa] Remove deprecated scroller part constants#3432
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:remove-deprecated-scroller-part-constants

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

The constants NSScrollerDecrementLine and NSScrollerIncrementLine are deprecated since macOS 10.14 without replacement, as scrollers do not have arrow buttons anymore since macOS 10.7. Consequently, hitPart()/testPart() can never return these values on any supported macOS version.

This change removes the constants from OS.java and the bridgesupport extras, together with the dead switch cases in ScrollBar#sendSelection and Slider#sendSelection that handled hits on the no longer existing scroller arrows (which produced SWT.ARROW_UP/SWT.ARROW_DOWN event details).

Contributes to #3214

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Test Results (macos)

   64 files  ±0     64 suites  ±0   9m 37s ⏱️ + 2m 12s
4 584 tests ±0  4 335 ✅ ±0  249 💤 ±0  0 ❌ ±0 
2 226 runs  ±0  2 160 ✅ ±0   66 💤 ±0  0 ❌ ±0 

Results for commit 92ae80e. ± Comparison against base commit a99cbe4.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review July 12, 2026 19:08
NSScrollerDecrementLine and NSScrollerIncrementLine are deprecated since
macOS 10.14 without replacement, as scrollers do not have arrow buttons
anymore since macOS 10.7. Remove the constants together with the dead
switch cases in ScrollBar and Slider that handled hits on the no longer
existing scroller arrows.

Contributes to
eclipse-platform#3214

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@HeikoKlare HeikoKlare force-pushed the remove-deprecated-scroller-part-constants branch from 6bc59a3 to 92ae80e Compare July 16, 2026 18:57
@HeikoKlare HeikoKlare merged commit 1603edd into eclipse-platform:master Jul 16, 2026
19 checks passed
@HeikoKlare HeikoKlare deleted the remove-deprecated-scroller-part-constants branch July 16, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant