Skip to content

Replace deprecated Color(Device, ...) constructors with display-free variants#127

Closed
vogella wants to merge 1 commit intoeclipse-gef:masterfrom
vogella:master
Closed

Replace deprecated Color(Device, ...) constructors with display-free variants#127
vogella wants to merge 1 commit intoeclipse-gef:masterfrom
vogella:master

Conversation

@vogella
Copy link
Copy Markdown

@vogella vogella commented Apr 15, 2026

Summary

  • Replaces all usages of the deprecated new Color(Device/Display, ...) SWT constructors with the modern display-free equivalents
  • Affects 5 files: TestLabelProvider, TagCloud, CloudOptionsComposite, TypeLabelProvider, and DotHtmlLabelIndentationHighlightingTest
  • The JavaFX Color constructors (with float/double values) are unaffected — those are a different class

Related to the upstream deprecation: eclipse-platform/eclipse.platform.swt#3233

Test plan

  • Verify the cloudio UI renders colors correctly (highlight, background, selection)
  • Verify the dot tests still pass for HTML label indentation highlighting
  • Run the full test suite to check for regressions

🤖 Generated with Claude Code

…variants

Replaces all usages of the deprecated new Color(Device/Display, ...) SWT
constructors with the modern equivalents that do not require a Device parameter,
as per eclipse-platform/eclipse.platform.swt#3233.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@vogella vogella closed this Apr 15, 2026
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