Skip to content

Do not load perspective icons of uninstalled bundles - #4365

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:vogella/perspective-icon-missing-bundle
Open

Do not load perspective icons of uninstalled bundles#4365
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:vogella/perspective-icon-missing-bundle

Conversation

@vogella

@vogella vogella commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

A perspective persisted in the application model outlives the bundle that contributed it. Its icon URI then points to a bundle that is no longer installed, and every load attempt makes FileLocator log an error, which is what fills the error log in #4364 once the perspective switcher paints the item on each window creation.

The registry now checks that the bundle is installed before it builds an ImageDescriptor for a model perspective. Such a perspective falls back to the default perspective icon, which is what it showed anyway, and the log stays clean. The perspective itself is left alone, so removing it stays a manual decision.

A perspective persisted in the model outlives the bundle that contributed
it, and loading its icon then makes FileLocator log an error per attempt.
Check the bundle first and fall back to the default perspective icon.

Fixes eclipse-platform#4364

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Test Results

   572 files   -   277     572 suites   - 277   38m 16s ⏱️ - 25m 2s
 8 307 tests +    1   8 059 ✅  -     4  248 💤 +  5  0 ❌ ±0 
13 860 runs   - 6 611  13 405 ✅  - 6 401  455 💤  - 210  0 ❌ ±0 

Results for commit 04a88c0. ± Comparison against base commit 3baf21b.

This pull request skips 5 tests.
org.eclipse.ui.genericeditor.tests.HoverTest ‑ testEnabledWhenHover(TestInfo)
org.eclipse.ui.genericeditor.tests.HoverTest ‑ testMultipleHover(TestInfo)
org.eclipse.ui.genericeditor.tests.HoverTest ‑ testProblemHover(TestInfo)
org.eclipse.ui.genericeditor.tests.HoverTest ‑ testSingleHover(TestInfo)
org.eclipse.ui.genericeditor.tests.ShowInformationTest ‑ testInformationControl(TestInfo)

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