From 6df11d289d2e56d3de46943413c87e4f93467a6a Mon Sep 17 00:00:00 2001 From: Sebastian Ratz Date: Tue, 10 Sep 2024 14:40:13 +0200 Subject: [PATCH] Adopt new o.e.e.p2.publisher.eclipse API for IMacOsBundleUrlType After #4246, we can now consume the new org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptor.getMacOsBundleUrlTypes() API in the Tycho wrapper org.eclipse.tycho.p2.tools.publisher.ExpandedProduct. This is necessary to properly support link handler registrations in product's launchers. See https://github.com/eclipse-platform/eclipse.platform.ui/issues/1901 https://github.com/eclipse-equinox/p2/pull/533 for more information. --- .../eclipse/tycho/p2/tools/publisher/ExpandedProduct.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2/tools/publisher/ExpandedProduct.java b/tycho-core/src/main/java/org/eclipse/tycho/p2/tools/publisher/ExpandedProduct.java index 734d5b4dc3..259c2b615d 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2/tools/publisher/ExpandedProduct.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2/tools/publisher/ExpandedProduct.java @@ -27,6 +27,7 @@ import org.eclipse.equinox.internal.p2.publisher.eclipse.ProductContentType; import org.eclipse.equinox.p2.metadata.IInstallableUnit; import org.eclipse.equinox.p2.metadata.IVersionedId; +import org.eclipse.equinox.p2.publisher.eclipse.IMacOsBundleUrlType; import org.eclipse.equinox.p2.repository.IRepositoryReference; import org.eclipse.tycho.ArtifactType; import org.eclipse.tycho.Interpolator; @@ -291,4 +292,9 @@ public String getVM(String os) { return defaults.getVM(os); } + @Override + public List getMacOsBundleUrlTypes() { + return defaults.getMacOsBundleUrlTypes(); + } + }