Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2008-01-17 12:06:45 -0500
committerDJ Houghton2008-01-17 12:06:45 -0500
commitd3f967e15958d601584d119ad0cef0d679ce8335 (patch)
tree73fa64147cdcca3c85b69bab6207d664340251ec
parentea0a5695818de00e95260cad482208f8495fa688 (diff)
downloadrt.equinox.bundles-R3_2_maintenance.tar.gz
rt.equinox.bundles-R3_2_maintenance.tar.xz
rt.equinox.bundles-R3_2_maintenance.zip
Bug 215677 - [Preferences] Some preferences are not crash safeR32x_v20080117R3_2_maintenance
-rw-r--r--bundles/org.eclipse.equinox.preferences/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/PreferencesService.java7
2 files changed, 8 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.preferences/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.preferences/META-INF/MANIFEST.MF
index 7e9d5169..7ebec262 100644
--- a/bundles/org.eclipse.equinox.preferences/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.preferences/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.equinox.preferences; singleton:=true
-Bundle-Version: 3.2.1.qualifier
+Bundle-Version: 3.2.2.qualifier
Bundle-Activator: org.eclipse.core.internal.preferences.Activator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/PreferencesService.java b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/PreferencesService.java
index 982974b9..18015d99 100644
--- a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/PreferencesService.java
+++ b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/PreferencesService.java
@@ -89,6 +89,13 @@ public class PreferencesService implements IPreferencesService {
return;
try {
internalApply(tree, filters);
+ // save the preferences
+ try {
+ getRootNode().node(tree.absolutePath()).flush();
+ } catch (BackingStoreException e) {
+ throw new CoreException(createStatusError(PrefsMessages.preferences_saveProblems, e));
+ }
+
//this typically causes a major change to the preference tree, so force string sharing
lastStringSharing = 0;
shareStrings();

Back to the top