Bug 267519 - [Preferences] Restoring Preference Defaults
Summary: [Preferences] Restoring Preference Defaults
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-07 16:41 EST by Al W CLA
Modified: 2019-09-06 16:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.