Bug 549929 - Provide getDialogSettings method functionality outside of
AbstractUIPlugin
Fix new deprecation usages.
Change-Id: I721e51810602b49442fe330eb45edf38c2b8d8fa
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
index 67a0f06..3adad8e 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
@@ -1,5 +1,5 @@
/***************************************************************************************************
- * Copyright (c) 2005, 2019 IBM Corporation and others.
+ * Copyright (c) 2005, 2020 IBM Corporation and others.
*
* This program and the
* accompanying materials are made available under the terms of the Eclipse Public License 2.0
@@ -226,7 +226,7 @@
private static SideValue determineLocation(IntroLaunchBarElement element) {
// Try restoring to the same location if moved previously
- IDialogSettings settings = IntroPlugin.getDefault().getDialogSettings();
+ IDialogSettings settings = PlatformUI.getDialogSettingsProvider(IntroPlugin.getDefault().getBundle()).getDialogSettings();
try {
int storedLocation = settings.getInt(S_STORED_LOCATION);
if (storedLocation > 0)
@@ -285,7 +285,7 @@
}
private void storeLocation() {
- IDialogSettings settings = IntroPlugin.getDefault().getDialogSettings();
+ IDialogSettings settings = PlatformUI.getDialogSettingsProvider(IntroPlugin.getDefault().getBundle()).getDialogSettings();
settings.put(S_STORED_LOCATION, toSWT(getLocation()));
}