diff options
author | Alexander Kurtakov | 2020-10-19 21:06:21 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-10-19 21:30:45 +0000 |
commit | b6cd408e68c3beb9c01133effbaa8f95bad18628 (patch) | |
tree | 5629a99333326e1e756c69840d92de3996373017 | |
parent | e58e56c653f78a075fb0edfc597d83f5e9a8febb (diff) | |
download | eclipse.platform.ua-b6cd408e68c3beb9c01133effbaa8f95bad18628.tar.gz eclipse.platform.ua-b6cd408e68c3beb9c01133effbaa8f95bad18628.tar.xz eclipse.platform.ua-b6cd408e68c3beb9c01133effbaa8f95bad18628.zip |
Bug 549929 - Provide getDialogSettings method functionality outside ofI20201020-0240
AbstractUIPlugin
Fix new deprecation usages.
Change-Id: I721e51810602b49442fe330eb45edf38c2b8d8fa
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 67a0f061f..3adad8e40 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 @@ public class IntroLaunchBar { 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 @@ public class IntroLaunchBar { } private void storeLocation() { - IDialogSettings settings = IntroPlugin.getDefault().getDialogSettings(); + IDialogSettings settings = PlatformUI.getDialogSettingsProvider(IntroPlugin.getDefault().getBundle()).getDialogSettings(); settings.put(S_STORED_LOCATION, toSWT(getLocation())); } |