Skip to content

[Cocoa] Remove deprecated scroller part constants#3432

Open
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:remove-deprecated-scroller-part-constants
Open

[Cocoa] Remove deprecated scroller part constants#3432
HeikoKlare wants to merge 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

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>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results (macos)

   64 files  ±0     64 suites  ±0   6m 29s ⏱️ -51s
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 6bc59a3. ± Comparison against base commit 28ddc85.

@HeikoKlare HeikoKlare marked this pull request as ready for review July 12, 2026 19:08
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