Bug 267519

Summary: [Preferences] Restoring Preference Defaults
Product: [Eclipse Project] Platform Reporter: Al W <alan.willms>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Al W CLA 2009-03-07 16:41:05 EST
Build ID: M20080911-1700

Steps To Reproduce:
1. In one preference page restore all preferences to their defaults (see code below)
2. call performDefaults() on the current page to reset fields
3. Go look at another preference page
4. The modified values are still showing, the fields haven't been restored to default.

Perhaps switching preference pages should reread the preferences from the preference store thus fixing this.



More information:
Button resetPreferences = new Button(getFieldEditorParent(), SWT.PUSH);
resetPreferences.setText("Reset All Preferences");

final GeneralPreferencePage gpp = this;

resetPreferences.addSelectionListener(new SelectionAdapter(){
	public void widgetSelected(SelectionEvent e) {
		ResetPreferencesAction rpa = new ResetPreferencesAction(null, "Reset All Preferences");
		rpa.run();
		gpp.performDefaults();
	}
	
});
Comment 1 Al W CLA 2009-03-10 11:13:23 EDT
Is there a way to get a pointer to the other prefernce pages in the set ?
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:10:46 EDT
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.