Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-18 15:22:39 -0400
committerMatthew Piggott2011-04-18 18:01:08 -0400
commitc95b8b38c146025e2a4f20982e679326ee6c8ca2 (patch)
tree394ae394542c9672aaf6e99793f5701963137565
parent30c2a90a75f092ac114e058e32b744228d3c4285 (diff)
downloadm2e-core-c95b8b38c146025e2a4f20982e679326ee6c8ca2.tar.gz
m2e-core-c95b8b38c146025e2a4f20982e679326ee6c8ca2.tar.xz
m2e-core-c95b8b38c146025e2a4f20982e679326ee6c8ca2.zip
Fix preference access
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java
index 6f5c3646..006cbd61 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java
@@ -11,12 +11,19 @@
package org.eclipse.m2e.core.ui.internal;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.core.IMavenConstants;
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.IMavenDiscovery;
@@ -24,11 +31,6 @@ import org.eclipse.m2e.core.ui.internal.console.MavenConsoleImpl;
import org.eclipse.m2e.core.ui.internal.search.util.IndexSearchEngine;
import org.eclipse.m2e.core.ui.internal.search.util.SearchEngine;
import org.eclipse.m2e.core.ui.internal.wizards.IMavenDiscoveryUI;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.ui.preferences.ScopedPreferenceStore;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceReference;
@SuppressWarnings("restriction")
@@ -51,7 +53,7 @@ public class M2EUIPluginActivator extends AbstractUIPlugin {
public IPreferenceStore getPreferenceStore() {
// Create the preference store lazily.
if(preferenceStore == null) {
- preferenceStore = new ScopedPreferenceStore(new InstanceScope(), IMavenConstants.PLUGIN_ID);
+ preferenceStore = new ScopedPreferenceStore(InstanceScope.INSTANCE, IMavenConstants.PLUGIN_ID);
}
return preferenceStore;

Back to the top