Skip to content

Replace deprecated Color constructors that take a Device parameter#1087

Merged
azoitl merged 1 commit intoeclipse-gef:masterfrom
vogella:replace-deprecated-color-constructors
Apr 15, 2026
Merged

Replace deprecated Color constructors that take a Device parameter#1087
azoitl merged 1 commit intoeclipse-gef:masterfrom
vogella:replace-deprecated-color-constructors

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 15, 2026

Summary

  • Replace all usages of deprecated Color(Device, int, int, int), Color(Device, RGB), Color(Device, RGBA) and related variants with the modern device-free equivalents Color(int, int, int), Color(RGB), etc.
  • This affects 28 files across draw2d, gef, zest core, zest cloudio, and various examples
  • All modules compile successfully after the change

Follows the deprecation introduced in eclipse-platform/eclipse.platform.swt#3233.

Test plan

  • All production modules compile (org.eclipse.draw2d, org.eclipse.gef, org.eclipse.zest.core, org.eclipse.zest.cloudio)
  • All example and test modules compile

🤖 Generated with Claude Code

@Phillipus
Copy link
Copy Markdown
Contributor

Please see #1086

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 15, 2026

@ptziegler can you review?

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 15, 2026

Please see #1086

I think you missed a few in your PR.

Replace all usages of deprecated Color(Device, int, int, int),
Color(Device, RGB), and related variants with the modern device-free
equivalents Color(int, int, int), Color(RGB), etc. as deprecated in
eclipse-platform/eclipse.platform.swt#3233.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vogella vogella force-pushed the replace-deprecated-color-constructors branch from 865b240 to 7671d86 Compare April 15, 2026 08:48
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 15, 2026

@azoitl can you review?

@azoitl
Copy link
Copy Markdown
Contributor

azoitl commented Apr 15, 2026

OMW

@azoitl azoitl merged commit d39d252 into eclipse-gef:master Apr 15, 2026
14 checks passed
@vogella vogella deleted the replace-deprecated-color-constructors branch April 16, 2026 08:48
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.

3 participants