Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Brun2011-03-07 17:33:12 +0000
committerCedric Brun2011-03-07 17:33:12 +0000
commita517f7420a63d98ff455821e2110a0402fce7466 (patch)
tree803cef9d4d859017c91bf3ce9be9b8a27b9e6623
parent099f49ea1a199d66c3608b401ed6b3690b2ce0be (diff)
downloadorg.eclipse.emf.compare-a517f7420a63d98ff455821e2110a0402fce7466.tar.gz
org.eclipse.emf.compare-a517f7420a63d98ff455821e2110a0402fce7466.tar.xz
org.eclipse.emf.compare-a517f7420a63d98ff455821e2110a0402fce7466.zip
Fix compile error with 3.7 and DefaultScope() being deprecated
-rw-r--r--plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/EMFComparePlugin.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/EMFComparePlugin.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/EMFComparePlugin.java
index ca475b996..49976772f 100644
--- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/EMFComparePlugin.java
+++ b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/EMFComparePlugin.java
@@ -74,15 +74,15 @@ public class EMFComparePlugin extends Plugin {
if (blocker) {
severity = IStatus.ERROR;
}
- log(new Status(severity, PLUGIN_ID, severity, EMFCompareMessages
- .getString("EMFComparePlugin.ElementNotFound"), e)); //$NON-NLS-1$
+ log(new Status(severity, PLUGIN_ID, severity,
+ EMFCompareMessages.getString("EMFComparePlugin.ElementNotFound"), e)); //$NON-NLS-1$
} else {
int severity = IStatus.WARNING;
if (blocker) {
severity = IStatus.ERROR;
}
- log(new Status(severity, PLUGIN_ID, severity, EMFCompareMessages
- .getString("EMFComparePlugin.JavaException"), e)); //$NON-NLS-1$
+ log(new Status(severity, PLUGIN_ID, severity,
+ EMFCompareMessages.getString("EMFComparePlugin.JavaException"), e)); //$NON-NLS-1$
}
}
@@ -181,7 +181,7 @@ public class EMFComparePlugin extends Plugin {
* This will initialize the core preferences to their default values.
*/
private void initializeDefaultPreferences() {
- final IEclipsePreferences defaultCorePreferences = new DefaultScope().getNode(PLUGIN_ID);
+ final IEclipsePreferences defaultCorePreferences = DefaultScope.INSTANCE.getNode(PLUGIN_ID);
defaultCorePreferences.putInt(EMFComparePreferenceConstants.PREFERENCES_KEY_SEARCH_WINDOW,
EMFComparePreferenceConstants.PREFERENCES_DEFAULT_SEARCH_WINDOW);
/*

Back to the top