Skip to content

Replace deprecated Color(Device, ...) constructors#2939

Merged
akurtakov merged 1 commit into
eclipse-jdt:masterfrom
vogella:replace-deprecated-color-constructor
Apr 15, 2026
Merged

Replace deprecated Color(Device, ...) constructors#2939
akurtakov merged 1 commit into
eclipse-jdt:masterfrom
vogella:replace-deprecated-color-constructor

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 15, 2026

Summary

  • Replace all Color(Device, int, int, int) and Color(Device, RGB) constructor calls with device-free Color(int, int, int) and Color(RGB) variants
  • Remove unused Display parameters, variables, and imports where they were only needed for the old Color constructors
  • 7 files updated across org.eclipse.jdt.ui, org.eclipse.jdt.junit, and org.eclipse.jdt.astview

See eclipse-platform/eclipse.platform.swt#3233

Test plan

  • mvn clean verify -DskipTests builds successfully with no new warnings

🤖 Generated with Claude Code

…ariants

The Color(Device, ...) constructors are deprecated in SWT.
Use the device-free Color(...) constructors instead, as colors
no longer require a Device reference.

See eclipse-platform/eclipse.platform.swt#3233

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vogella vogella marked this pull request as ready for review April 15, 2026 15:46
@akurtakov akurtakov merged commit 28267d7 into eclipse-jdt:master Apr 15, 2026
13 checks passed
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.

2 participants