Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-09-23 20:55:45 +0000
committerChris Goldthorpe2011-09-23 20:56:44 +0000
commit2bebfff91cd3f259579817e928fb5932dbd622c4 (patch)
treea0dcd60982ef694e7094cd1ae17536b4b65820b9 /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp
parent2b9e134f639655caad85f80eb6195e8dc525bc3b (diff)
downloadeclipse.platform.ua-2bebfff91cd3f259579817e928fb5932dbd622c4.tar.gz
eclipse.platform.ua-2bebfff91cd3f259579817e928fb5932dbd622c4.tar.xz
eclipse.platform.ua-2bebfff91cd3f259579817e928fb5932dbd622c4.zip
Bug 358778 - [Test] Eliminate deprecation warnings inv20110926
org.eclipse.ua.tests
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/RestrictedTopicParameter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/RestrictedTopicParameter.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/RestrictedTopicParameter.java
index d4eb6ce83..a4390aac9 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/RestrictedTopicParameter.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/RestrictedTopicParameter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 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
@@ -43,8 +43,7 @@ public class RestrictedTopicParameter extends TestCase {
}
private void setRestrictTopic(boolean isRestrict) {
- InstanceScope instanceScope = new InstanceScope();
- IEclipsePreferences pref = instanceScope.getNode(HelpBasePlugin.PLUGIN_ID);
+ IEclipsePreferences pref = InstanceScope.INSTANCE.getNode(HelpBasePlugin.PLUGIN_ID);
pref.putBoolean(RESTRICT_TOPIC, isRestrict);
}

Back to the top