Skip to content

Conversation

@ptziegler
Copy link
Contributor

SWT version 3.130.0 or newer is able to automatically generate a "disabled" icon. If such a version is used, it is no longer necessary to explicitly set it for e.g. an action.

In short: If SWT < 3.130 is used, both "enabled" and "disabled" icons are set, otherwise only the "enabled" icon is set.

Closes #732

@ptziegler ptziegler added this to the 3.26.0 milestone Sep 7, 2025
@ptziegler
Copy link
Contributor Author

The new warnings are technically correct and caused because deprecation warnings are currently ignored. See #778.

I'll focus on getting the remaining warnings in GEF fixed, enable the setting there and then update this PR.

SWT version 3.130.0 or newer is able to automatically generate a
"disabled" icon. If such a version is used, it is no longer necessary to
explicitly set it for e.g. an action.

In short: If SWT < 3.130 is used, both "enabled" and "disabled" icons
are set, otherwise only the "enabled" icon is set.

Closes eclipse-gef#732
@ptziegler
Copy link
Contributor Author

I've removed the suppression of the deprecation warnings, as they are not yet enabled for the GEF plugin. The only other warnings are produced by the focusPart field, which is sadly not trivial to get rid of.

@ptziegler ptziegler merged commit ba94913 into eclipse-gef:master Oct 6, 2025
14 checks passed
@ptziegler ptziegler deleted the issue732-pt2 branch October 6, 2025 18:06
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.

Deprecate or Remove Disabled Icons

1 participant