Top-level workspace preferences cannot be dynamically filtered by activities
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 小时
- 30 天内合并 PR
- 63
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
维护者通常 1 天内回复