Skip to content

fix(ui): override setAction(javax.swing.Action) in AzureActionButton …#11844

Merged
wangmingliang-ms merged 1 commit into
develop.nextfrom
eap/ui-compat
Mar 20, 2026
Merged

fix(ui): override setAction(javax.swing.Action) in AzureActionButton …#11844
wangmingliang-ms merged 1 commit into
develop.nextfrom
eap/ui-compat

Conversation

@wangmingliang-ms

Copy link
Copy Markdown
Collaborator

…for New UI compatibility

In IntelliJ 2026.1 EAP's New UI, the form runtime or DarculaButtonUI may call AbstractButton.setAction(javax.swing.Action) which triggers configurePropertiesFromAction() and clears the button text/icon set by the GUI form instrumentation.

Override this method as a no-op to preserve button text and icon values, fixing blank toolbar buttons in Properties views (e.g. WebApp, Function App, Redis, Spring Cloud, KeyVault, Database, etc.).

Fixes: https://dev.azure.com/mseng/VSJava/_workitems/edit/2367324

What does this implement/fix? Explain your changes.

Does this close any currently open issues?

Any relevant logs, screenshots, error output, etc.?

Any other comments?

Has this been tested?

  • Tested

…for New UI compatibility

In IntelliJ 2026.1 EAP's New UI, the form runtime or DarculaButtonUI may call
AbstractButton.setAction(javax.swing.Action) which triggers
configurePropertiesFromAction() and clears the button text/icon set by the
GUI form instrumentation.

Override this method as a no-op to preserve button text and icon values,
fixing blank toolbar buttons in Properties views (e.g. WebApp, Function App,
Redis, Spring Cloud, KeyVault, Database, etc.).

Fixes: https://dev.azure.com/mseng/VSJava/_workitems/edit/2367324
@wangmingliang-ms
wangmingliang-ms merged commit 5970da6 into develop.next Mar 20, 2026
1 check passed
@wangmingliang-ms
wangmingliang-ms deleted the eap/ui-compat branch March 20, 2026 07:11
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