Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-09-23 20:38:44 +0000
committerChris Goldthorpe2011-09-23 20:40:23 +0000
commita517f37e9dc29bf07c73cebf16653ea76bd12a99 (patch)
tree5c7889f6d6152b23e8869cc69a804e8a32042d9a /org.eclipse.ui.intro.universal
parent405ab60e2267e60bd4cbc1b574828874589d8bcf (diff)
downloadeclipse.platform.ua-a517f37e9dc29bf07c73cebf16653ea76bd12a99.tar.gz
eclipse.platform.ua-a517f37e9dc29bf07c73cebf16653ea76bd12a99.tar.xz
eclipse.platform.ua-a517f37e9dc29bf07c73cebf16653ea76bd12a99.zip
Bug 358776 - [Intro][CheatSheets] Fix deprecation warnings in intro
projects
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