| Summary: | [ActivityMgmt] Preference-pages and activities | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Rudi Mising name <rudi.steiner> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Mike_Wilson, prakash, roland.oldenburg, stern.s | ||||
| Version: | 3.5 | Keywords: | helpwanted | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Rudi Mising name
Changing Version tag to something more believable. Could you please tell me if someone is tracking this? Is my description comprehensible? Is this a bug? This will be investigated in the 3.6 timeframe. PW Hello Paul, could you please tell me when this timeframe is or could you send me a link, where the timeframes are described? I didn't think that it takes months, that someone takes a look at my bugreport. I can't wait so long with my app and have to find a workaround in the meantime. Instead of preparing a demo app and describing this strange behaviour, next time I'll immediately look for a workaround. This is the second bug I reported, which nobody cares about :( (In reply to comment #4) > Hello Paul, > > could you please tell me when this timeframe is or could you send me a link, > where the timeframes are described? 3.6 will be available in July 2010 > I didn't think that it takes months, that someone takes a look at my bugreport. > I can't wait so long with my app and have to find a workaround in the meantime. It does take months ... I'm good :-) but I'm sitting on >1000 bug reports. This is a community based open source project. If you need this fixed sooner than an existing committer can get to it, please contribute a fix. http://wiki.eclipse.org/Platform_UI/How_to_Contribute contains instructions on setup, and I can point to hook points that are relevant PW Hi there, any news concerning this issue? It seems to me that this bug still exists in Indigo Build id: 20110615-0604 Prefs are hidden by an expression-controlled activity. When expression state changes then toolbar entries appear but preference entries stay hidden... Anybody working on that? Regards, R.O. unfortunately no, no one is looking at this at the moment. PW :-) well, any idea for a workaround? Is it possible to programatically force the preference service/dialog to refresh its node list? Or any other idea? At least a hint for the right direction? If I find a way, I will post my solution here... ok, I found one myself.
The following snippet works as a workaround for pages activated by activities during runtime.
Have fun!
public class MyPreferenceManager implements IActivityManagerListener {
private PreferenceManager pm = null;
@SuppressWarnings("restriction")
private PreferencePageRegistryReader registryReader = null;
private List<String> hiddenPreferences = Arrays.asList(
"org.eclipse.debug.ui.DebugPreferencePage", //$NON-NLS-1$
"org.eclipse.team.ui.TeamPreferences", //$NON-NLS-1$
"org.eclipse.ui.preferencePages.Workbench", //$NON-NLS-1$
);
@SuppressWarnings("restriction")
public MyPreferenceManager(IWorkbench workbench) {
pm = workbench.getPreferenceManager();
registryReader = new PreferencePageRegistryReader(workbench);
registryReader.loadFromRegistry(Platform.getExtensionRegistry());
for (String prefId : hiddenPreferences) {
pm.remove(prefId);
}
workbench.getActivitySupport().getActivityManager().addActivityManagerListener(this);
}
@SuppressWarnings("restriction")
@Override
public void activityManagerChanged(ActivityManagerEvent activityManagerEvent) {
Collection<Object> pageContributions = new LinkedList<Object>();
for (Object element : registryReader.getTopLevelNodes()) {
if (element instanceof WorkbenchPreferenceNode) {
String id = ((WorkbenchPreferenceNode) element).getId();
if (!hiddenPreferences.contains(id) && pm.find(id) == null) {
pageContributions.add(element);
}
}
}
if (!pageContributions.isEmpty()) {
((WorkbenchPreferenceManager)pm).addPages(pageContributions);
}
}
}
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the stalebug whiteboard tag. |