diff options
author | Chris Goldthorpe | 2011-09-23 20:55:45 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2011-09-23 20:56:44 +0000 |
commit | 2bebfff91cd3f259579817e928fb5932dbd622c4 (patch) | |
tree | a0dcd60982ef694e7094cd1ae17536b4b65820b9 /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc | |
parent | 2b9e134f639655caad85f80eb6195e8dc525bc3b (diff) | |
download | eclipse.platform.ua-2bebfff91cd3f259579817e928fb5932dbd622c4.tar.gz eclipse.platform.ua-2bebfff91cd3f259579817e928fb5932dbd622c4.tar.xz eclipse.platform.ua-2bebfff91cd3f259579817e928fb5932dbd622c4.zip |
org.eclipse.ua.tests
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc')
-rw-r--r-- | org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/TocSortingTest.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/TocSortingTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/TocSortingTest.java index 10ca1c134..f9f7e9451 100644 --- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/TocSortingTest.java +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/TocSortingTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2009 IBM Corporation and others. + * Copyright (c) 2007, 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 @@ -137,14 +137,12 @@ public class TocSortingTest extends TestCase { } private void setHelpData(String value) { - InstanceScope instanceScope = new InstanceScope(); - IEclipsePreferences prefs = instanceScope.getNode(HelpPlugin.PLUGIN_ID); + IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(HelpPlugin.PLUGIN_ID); prefs.put(HelpPlugin.HELP_DATA_KEY, value); } private void setBaseTocs(String value) { - InstanceScope instanceScope = new InstanceScope(); - IEclipsePreferences prefs = instanceScope.getNode(HelpPlugin.PLUGIN_ID); + IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(HelpPlugin.PLUGIN_ID); prefs.put(BASE_TOCS, value); } |