Skip to content

Use the Kotlin UI DSL list renderer in the Comark style panel - #53

Merged
xprees merged 1 commit into
masterfrom
ccr-f27f9a8d-ohbasu-renderer
Nov 16, 2026
Merged

xprees merged 1 commit into
masterfrom
ccr-f27f9a8d-ohbasu-renderer

Conversation

@xprees

@xprees xprees commented Nov 16, 2026

Copy link
Copy Markdown
Owner

What and why

The JetBrains Marketplace validation of Comark 2026.3.15 reports:

Scheduled for removal method usage (1): SimpleListCellRenderer.create(...) (scheduled for removal in a future release)

#44 had already moved off create(String, Function), but the replacement create(Customizer) is scheduled for removal on newer platforms too. Its only use is the combo box renderer in Code Style › Comark › Style (ComarkStylePanel.combo).

Fix

Use com.intellij.ui.dsl.listCellRenderer.textListCellRenderer(textExtractor), the Kotlin UI DSL renderer. I checked the 2026.1 platform jar (intellij.platform.ide.jar, IU-261):

  • the one-argument overload is public, with no deprecation or experimental marker;
  • the overload that also takes a null-value text is @ApiStatus.Internal, so it isn't used.

No SimpleListCellRenderer remains in src/main. There is no user-visible change, so no changelog entry.

How it was tested

  • ComarkStylePanelTest and ComarkStyleSettingsTest pass; the panel builds every combo box with the new renderer.
  • CI's Plugin Verifier against IDEA, WebStorm and Rider will confirm that the scheduled-for-removal usage is gone.

Generated by Claude Code

The Plugin Verifier reports SimpleListCellRenderer.create(...) as
scheduled for removal on 2026.3. Use textListCellRenderer(extractor),
public and not deprecated since 2026.1 (the overload with a null text
is internal, so it is not used).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KGGeqcwjamvMDTrazMJWkz
@xprees
xprees merged commit 1969641 into master Nov 16, 2026
7 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