KEMBAR78
Extract icon loading and dependency loading into separate class by novotnyr · Pull Request #1291 · JetBrains/intellij-plugin-verifier · GitHub
Skip to content

Conversation

novotnyr
Copy link
Collaborator

@novotnyr novotnyr commented Jun 9, 2025

In order to simplify PluginCreator, extract the following functionality to separate class:

  • icon loading
  • legacy 3rd party dependency loading

@novotnyr novotnyr requested a review from Copilot June 9, 2025 15:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extracts functionality for loading plugin icons and legacy 3rd party dependencies into separate loader classes to simplify PluginCreator.

  • Introduces PluginIconLoader and ThirdPartyDependencyLoader classes.
  • Adds tests for icon loading via PluginIconLoader.
  • Updates IdePluginManager to utilize the new loader classes.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/src/test/kotlin/com/jetbrains/plugin/structure/intellij/plugin/loaders/PluginIconLoaderTest.kt Adds tests validating that plugin icons (default and dark) are correctly loaded.
structure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/plugin/loaders/ThirdPartyDependencyLoader.kt Adds a dedicated loader class for legacy 3rd party dependency loading.
structure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/plugin/loaders/PluginIconLoader.kt Implements icon loading logic, mapping IconTheme values to file paths.
structure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/plugin/loaders/PluginDirectoryResourceLoader.kt Provides a common interface for resource loaders.
structure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/plugin/IdePluginManager.kt Refactors plugin info loading to use the new resource loaders instead of inlined logic.

@novotnyr novotnyr merged commit fb606bd into master Jun 9, 2025
2 checks passed
@novotnyr novotnyr deleted the extract-icon-loading-and-dependency-loading branch June 9, 2025 15:45
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