Replace APIs using equinox-resolve's BundleDescription #1164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modernize the PDE APIs that contains the antiquated
org.eclipse.osgi.service.resolver.BundleDescription
by providing alternatives using theorg.osgi.resource.Resource
and deprecating the existing methods for removal.Part of #1069
This is currently an early draft to discuss the overall direction. Since the intention is to focus on the API callers of the now deprecated methods are not replaced in this PR. Replacing all the usages of
BundleDescription
will be a much greater effort that will happen subsequently during the deprecation period.Maybe it is not even possible to complete #1069 (with reasonable effort) while the old methods are still available. So I think it is better to start the deprecation earlier than later.
In combination with #1163 all PDE APIs using a type from
org.eclipse.osgi.service.resolver
should be deprecated.