Top-level workspace preferences cannot be dynamically filtered by activities
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the linked WorkbenchPlugin.java location where top-level preference pages are evaluated, then trace how the workspace preferences view refreshes its pages when activity constraints change. Compare that path with child-page creation; done means the top-level page, like the child page, becomes visible after toggling the application context variable. No test file is mentioned, so identify and run relevant preference/activity tests.
索引モデルが issue の本文から書いたものです。
説明
- [ x] I verified I can reproduce this issue against Eclipse 4.41.0
Steps to reproduce
- Create an RCP client that provides an UI element based on the org.eclipse.ui.window.preferences command to show all preferences
- Using the org.eclipse.ui.preferencePages extension point define a top-level property page (content irrelevant, can be empty)
- Using the org.eclipse.ui.preferencePages extension point define another top-level property page (content irrelevant, can be empty)
- Using the org.eclipse.ui.preferencePages extension point define a child property page (content irrelevant, can be empty) of the second top-level preference page
- Define a PropertyTester that tests for a particular named Application context variable (In the following "X")
- Define using the org.eclipse.core.expressions.definition extension point an expression using a "with" element based on that property tester variable "X" and the property tester created above.
- Use the org.eclipse.ui.activities extension point to define a specific activity with an enabledWhen element based on above created expression reference.
- Provide a UI element (e.g. main menu entry) of check style with a handler whose effect is to toggle between two different values of the specifically named application context variable "X".
- Use the org.eclipse.ui.activities extension point to define an activityPatternBinding to the id of the first top-level property page
- Use the org.eclipse.ui.activities extension point to define an activityPatternBinding to the id of the child-level property page (The third one above)
- Start the RCP client and show the workspace preferences (via the org.eclipse.ui.window.preferences command)
- The use the second UI element to toggle the value of the application context variable "X"
- Show again the workspace preferences (via the org.eclipse.ui.window.preferences command)
I expected: At the first invocation both the first top-level and the child-level property pages are not visible (filtered by activity constraints) and after toggling the value of the application context variable "X" I expected both the first top-level and the child-level property pages are visible (No longer filtered by activity constraints)
But got: The second invocation only makes the child-level property page, but not the top-level property page
Tested under this environment:
- OS & version: Window 11
- Eclipse IDE/Platform version (as shown in Help > About): 2026-09 (4.41.0)
Community
- [ x] I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.)
Analysis of the problem
The surprising behaviour seems to be caused by the fact that the workspace preferences evaluates its top-level property pages only once: here, while all other pages are freshly created on demand.
We stumbled across this problem recently when we introduced a separate "application mode" in our programs and attempted to do what the description above does. I'm happy to help working on a solution, but would like to get feedback where to move the fresh top-level addition.
- 主要言語
- Java
- スター
- 124
- フォーク
- 269
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 63
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-platform/eclipse.platform.ui のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-platform/eclipse.platform.ui#4125 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-platform/eclipse.platform.ui#4016 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-platform/eclipse.platform.ui#3892 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
eclipse-platform/eclipse.platform.ui#2687 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Default background color changed for "welcome" area content対応中かも @vogella が今日担当しました。 オープンbug regression
難易度 2/5 1〜3時間 初心者へのやさしさ 53/100
eclipse-platform/eclipse.platform.ui#4484 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
eclipse-platform/eclipse.platform.ui の issue をすべて見る
似ている issue
-
Flight SQL JDBC parses boolean properties case-sensitively, silently disabling TLS for useEncryption=TRUE対応中かも @Arawoof06 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
apache/arrow-java#1357 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
apache/rocketmq-dashboard#6610 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MetricsHub/metricshub-community#1396 ·
メンテナーはふだん 1 日以内に返信
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
dependabot/dependabot-core#16547 ·
メンテナーはふだん 1 日以内に返信
-
Citationcount column sorts alphabetically instead of numerically対応中かも @kpunia306 が今日担当しました。 オープンstatus: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JabRef/jabref#17459 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信