Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315258 - Manifest Bundle Editor need to show multiple packages that have different versions
Summary: Manifest Bundle Editor need to show multiple packages that have different ver...
Status: RESOLVED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.3   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 13:26 EDT by Zina Mostafia CLA
Modified: 2013-01-10 17:07 EST (History)
2 users (show)

See Also:


Attachments
Screenshot of it working in 4.3 (59.86 KB, image/png)
2012-11-23 13:39 EST, Curtis Windatt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.