Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-04-08 13:07:50 -0400
committerMichael Rennie2011-04-08 13:07:50 -0400
commit0484472d9fefb7a685e043947551d72c4476b31a (patch)
tree3fc36a9389e3f0d714aa3b9d1a5ed75c8c70798d /org.eclipse.core.variables
parentd4159f33dbaff7c56d13f2a54b6bab8c4d6a2872 (diff)
downloadeclipse.platform.debug-0484472d9fefb7a685e043947551d72c4476b31a.tar.gz
eclipse.platform.debug-0484472d9fefb7a685e043947551d72c4476b31a.tar.xz
eclipse.platform.debug-0484472d9fefb7a685e043947551d72c4476b31a.zip
[nobug] remove deprecated use of 'new InstanceScope()' for preferences
Diffstat (limited to 'org.eclipse.core.variables')
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
index e015008bd..c847de62f 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 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
@@ -41,9 +41,9 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SafeRunner;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener;
import org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent;
+import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.core.variables.IDynamicVariable;
import org.eclipse.core.variables.IStringVariable;
import org.eclipse.core.variables.IStringVariableManager;
@@ -205,7 +205,7 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc
loadContributedValueVariables();
loadPersistedValueVariables();
loadDynamicVariables();
- new InstanceScope().getNode(VariablesPlugin.PI_CORE_VARIABLES).addPreferenceChangeListener(this);
+ InstanceScope.INSTANCE.getNode(VariablesPlugin.PI_CORE_VARIABLES).addPreferenceChangeListener(this);
fInternalChange = false;
}
}
@@ -526,7 +526,7 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc
}
fInternalChange = true;
try {
- IEclipsePreferences prefs = new InstanceScope().getNode(VariablesPlugin.PI_CORE_VARIABLES);
+ IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(VariablesPlugin.PI_CORE_VARIABLES);
prefs.put(PREF_VALUE_VARIABLES, variableString);
prefs.flush();
}

Back to the top