Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.intro.universal')
-rw-r--r--org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java
index 051e69d0b..5c3b029d4 100644
--- a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java
+++ b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/CustomizationContentsArea.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2009 IBM Corporation and others.
+ * Copyright (c) 2006, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -631,15 +631,13 @@ public class CustomizationContentsArea {
String pidKey = pid + "_" + key; //$NON-NLS-1$
String value;
if (!fromDefault) {
- InstanceScope instanceScope = new InstanceScope();
- prefs = instanceScope.getNode(pluginId);
+ prefs = InstanceScope.INSTANCE.getNode(pluginId);
value = getPreference(key, prefs, pidKey, null);
if (value != null) {
return value;
}
}
- DefaultScope defaultScope = new DefaultScope();
- prefs = defaultScope.getNode(pluginId);
+ prefs = DefaultScope.INSTANCE.getNode(pluginId);
return getPreference(key, prefs, pidKey, ""); //$NON-NLS-1$
}
@@ -761,9 +759,8 @@ public class CustomizationContentsArea {
}
private void saveData() {
- InstanceScope instanceScope = new InstanceScope();
- IEclipsePreferences iprefs = instanceScope.getNode(IntroPlugin.PLUGIN_ID);
- IEclipsePreferences uprefs = instanceScope.getNode(UniversalIntroPlugin.PLUGIN_ID);
+ IEclipsePreferences iprefs = InstanceScope.INSTANCE.getNode(IntroPlugin.PLUGIN_ID);
+ IEclipsePreferences uprefs = InstanceScope.INSTANCE.getNode(UniversalIntroPlugin.PLUGIN_ID);
boolean toAll = applyToAll.getSelection();
IProduct product = Platform.getProduct();
if (product == null)

Back to the top