Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-08-18 08:17:56 -0400
committerAlexander Kurtakov2015-08-18 08:36:17 -0400
commitc70010f235c5386910657137159276212d7fc367 (patch)
treedf0a850bc613aa701a366ebd3f3ed749d702fede /changelog
parentf8882991ba01c70d1a83e0344b2e0b96352b33e4 (diff)
downloadorg.eclipse.linuxtools-c70010f235c5386910657137159276212d7fc367.tar.gz
org.eclipse.linuxtools-c70010f235c5386910657137159276212d7fc367.tar.xz
org.eclipse.linuxtools-c70010f235c5386910657137159276212d7fc367.zip
Remove suppress warnings by properly fixing them.
Change-Id: Ie24d3d7bd059dc0b4fb1af926f1ecc4256e1869f Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/53968 Tested-by: Hudson CI
Diffstat (limited to 'changelog')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/ChangeLogPreferencesPage.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/ChangeLogPreferencesPage.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/ChangeLogPreferencesPage.java
index 1bdaf18759..8b2769f7bf 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/ChangeLogPreferencesPage.java
+++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/ChangeLogPreferencesPage.java
@@ -16,6 +16,7 @@ package org.eclipse.linuxtools.internal.changelog.core;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
@@ -28,6 +29,7 @@ import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.osgi.service.prefs.BackingStoreException;
/**
* @author pmuldoon (Phil Muldoon)
@@ -227,11 +229,14 @@ public class ChangeLogPreferencesPage extends PreferencePage implements
}
- @SuppressWarnings("deprecation")
@Override
public boolean performOk() {
storeValues();
- ChangelogPlugin.getDefault().savePluginPreferences();
+ try {
+ InstanceScope.INSTANCE.getNode(ChangelogPlugin.PLUGIN_ID).flush();
+ } catch (BackingStoreException e) {
+ // ignore saving exception
+ }
return true;
}

Back to the top