Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Fedorov2020-11-16 13:05:41 +0000
committerAlexander Fedorov2020-11-16 14:56:40 +0000
commit0a910e32b4ad902a84a5fa14f4911896a1015e63 (patch)
tree8b13539dc89326622a6df7a5981f327c6201f9f6
parent08085b7a9a905577c33ec44b5cb94e111186b71b (diff)
downloadeclipse.platform.debug-I20201116-1800.tar.gz
eclipse.platform.debug-I20201116-1800.tar.xz
eclipse.platform.debug-I20201116-1800.zip
Stop using deprecated AbstractUIPlugin.getDialogSettings()Y20201117-1200I20201118-0600I20201117-1800I20201117-0600I20201116-1800
Stop using deprecated AbstractUIPlugin.getDialogSettings() and correct the javadoc. Change-Id: I6c67993cff6f60359b5c6af128cd88e92ac1c46c Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
-rw-r--r--org.eclipse.unittest.ui/src/org/eclipse/unittest/internal/ui/CompareResultDialog.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.unittest.ui/src/org/eclipse/unittest/internal/ui/CompareResultDialog.java b/org.eclipse.unittest.ui/src/org/eclipse/unittest/internal/ui/CompareResultDialog.java
index 7da6c656e..67924ba5e 100644
--- a/org.eclipse.unittest.ui/src/org/eclipse/unittest/internal/ui/CompareResultDialog.java
+++ b/org.eclipse.unittest.ui/src/org/eclipse/unittest/internal/ui/CompareResultDialog.java
@@ -17,6 +17,8 @@ import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
+import org.osgi.framework.FrameworkUtil;
+
import org.eclipse.unittest.internal.UnitTestPlugin;
import org.eclipse.unittest.internal.model.TestElement;
import org.eclipse.unittest.model.ITestElement;
@@ -218,10 +220,11 @@ public class CompareResultDialog extends TrayDialog {
* Returns the section with the given name in this dialog settings.
*
* @param name the key
- * @return {@link IDialogSettings} (the section), or <code>null</code> if none
+ * @return {@link IDialogSettings} (the section)
*/
private IDialogSettings getDialogSettingsSection(String name) {
- IDialogSettings dialogSettings = UnitTestPlugin.getDefault().getDialogSettings();
+ IDialogSettings dialogSettings = PlatformUI.getDialogSettingsProvider(FrameworkUtil.getBundle(getClass()))
+ .getDialogSettings();
IDialogSettings section = dialogSettings.getSection(name);
if (section == null) {
section = dialogSettings.addNewSection(name);

Back to the top