diff options
author | Alexander Kurtakov | 2020-08-05 18:07:07 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-08-05 18:07:07 +0000 |
commit | ccb76f870db16c1eae81bd85b6932f139e18b452 (patch) | |
tree | 0397347544732277d731dd554da9c24fcbe23e2e | |
parent | f470fc9c119c7c40b93033b8b6476673d9081470 (diff) | |
download | rt.equinox.bundles-ccb76f870db16c1eae81bd85b6932f139e18b452.tar.gz rt.equinox.bundles-ccb76f870db16c1eae81bd85b6932f139e18b452.tar.xz rt.equinox.bundles-ccb76f870db16c1eae81bd85b6932f139e18b452.zip |
Port from PackageAdmin to FrameworkUtil.Y20200806-1200I20200806-1800I20200805-1800
Change-Id: I4ffd35290bec5cb1a412b609b333f6a6f594f639
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java index a2e8f3cc3..d8f240c1c 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2015 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 @@ -182,10 +182,7 @@ public class Activator implements BundleActivator { public String getBundleId(Object object) { if (object == null) return null; - PackageAdmin packageAdmin = getBundleAdmin(); - if (packageAdmin == null) - return null; - Bundle source = packageAdmin.getBundle(object.getClass()); + Bundle source = FrameworkUtil.getBundle(object.getClass()); if (source != null && source.getSymbolicName() != null) return source.getSymbolicName(); return null; |