diff options
author | Lars Vogel | 2020-10-20 09:11:32 +0000 |
---|---|---|
committer | Lars Vogel | 2020-10-20 09:11:32 +0000 |
commit | fe8e4cdd5f876e5f9b0b9e3dc9008580967527de (patch) | |
tree | eb8866b9c09c2a543c3086f76ec7b1ddc22c973b | |
parent | b6cd408e68c3beb9c01133effbaa8f95bad18628 (diff) | |
download | eclipse.platform.ua-fe8e4cdd5f876e5f9b0b9e3dc9008580967527de.tar.gz eclipse.platform.ua-fe8e4cdd5f876e5f9b0b9e3dc9008580967527de.tar.xz eclipse.platform.ua-fe8e4cdd5f876e5f9b0b9e3dc9008580967527de.zip |
Bug 549929 - Prefer FrameworkUtil in IntroLaunchBar over ActivatorY20201026-1200Y20201025-1200Y20201024-1200Y20201023-1200Y20201021-1200Y20201020-1200I20201026-1850I20201026-0840I20201026-0650I20201025-1800I20201025-0040I20201024-1800I20201023-1800I20201023-0250I20201021-1800I20201021-0200I20201020-1800
access
Change-Id: I17de42e858624e5039349ac832013bb3b53c8c14
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java | 5 |
1 files changed, 3 insertions, 2 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 3adad8e40..f025e65e7 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 @@ -62,6 +62,7 @@ import org.eclipse.ui.internal.intro.impl.util.ImageUtil; import org.eclipse.ui.intro.IIntroPart; import org.eclipse.ui.intro.config.IIntroURL; import org.eclipse.ui.intro.config.IntroURLFactory; +import org.osgi.framework.FrameworkUtil; /** * This class is responsible for creating the intro launch bar in the provided parent. It creates @@ -226,7 +227,7 @@ public class IntroLaunchBar { private static SideValue determineLocation(IntroLaunchBarElement element) { // Try restoring to the same location if moved previously - IDialogSettings settings = PlatformUI.getDialogSettingsProvider(IntroPlugin.getDefault().getBundle()).getDialogSettings(); + IDialogSettings settings = PlatformUI.getDialogSettingsProvider(FrameworkUtil.getBundle(IntroLaunchBar.class)).getDialogSettings(); try { int storedLocation = settings.getInt(S_STORED_LOCATION); if (storedLocation > 0) @@ -285,7 +286,7 @@ public class IntroLaunchBar { } private void storeLocation() { - IDialogSettings settings = PlatformUI.getDialogSettingsProvider(IntroPlugin.getDefault().getBundle()).getDialogSettings(); + IDialogSettings settings = PlatformUI.getDialogSettingsProvider(FrameworkUtil.getBundle(IntroLaunchBar.class)).getDialogSettings(); settings.put(S_STORED_LOCATION, toSWT(getLocation())); } |