Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315258

Summary: Manifest Bundle Editor need to show multiple packages that have different versions
Product: [Eclipse Project] PDE Reporter: Zina Mostafia <zina>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, pwebster
Version: 3.6   
Target Milestone: 4.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot of it working in 4.3 none

Description Zina Mostafia CLA 2010-06-01 13:26:13 EDT
Build Identifier: 3.6

I have different jars in my target platform that export same package name but with different versions.
I am planning to add an import package to a bundle in my workspace using the Manifest editor.
When I select Add... and I start typing the package name, it list me just one, the lower version one in my target platform.

I would have expected that it should list all availble versions.

Reproducible: Always
Comment 1 Curtis Windatt CLA 2012-11-20 14:24:28 EST
Needs investigation in 4.3.
Comment 2 Curtis Windatt CLA 2012-11-23 13:39:42 EST
Created attachment 223925 [details]
Screenshot of it working in 4.3

This is working in the add dialog in 4.3.  I created two projects in the workspace, each exporting package a.b.c with different versions.  On a third project I can import either package with a version constraint.

I did notice that using the content assist in the text editor only shows a.b.c once with no version information, so this could be improved.
Comment 3 Curtis Windatt CLA 2012-11-23 13:51:40 EST
For reference, the completion proposals are all built to parse out the name and throw away the version information.
org.eclipse.pde.internal.ui.editor.contentassist.ManifestContentAssistProcessor.handleImportPackageCompletion(String, int)
Comment 4 Curtis Windatt CLA 2013-01-10 17:07:30 EST
Closing as WORKSFORME.  If the content assist proposals are causing problems feel free to reopen or create a new bug.