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

Bug 128236

Summary: [Manifest Editor] Opening plugin.xml then Manifest.mf no longer shares same editor
Product: [Eclipse Project] PDE Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: 7elw95btwiuegh2, baumanbr, caniszczyk, cgold, daniel_megert, eclipse, emoffatt, jeffmcaffer, john.arthorne, markus.kell.r
Version: 3.2   
Target Milestone: 3.4 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
org.eclipse.pde.ui.patch none

Description Nick Edgar CLA 2006-02-16 11:18:19 EST
build I20060216-0800

- open the plugin.xml in a plugin project (e.g. org.eclipse.ui)
  - it opens the manifest editor
- open the Manifest.mf
  - it opens a second manifest editor
- open the build.properties
  - it reuses the second editor

Expectation:
- only one manifest editor is opened, and it's reused for all 3 files

Separate issue: this expectation also breaks down if build.properties is opened first, as it still opens a dedicated build properties editor if there was no matching manifest editor.  So opening build.properties then plugin.xml has a different effect than opening plugin.xml then build.properties.
Comment 1 Wassim Melhem CLA 2006-02-16 11:23:48 EST
Problem #1:  manifest.mf and plugin.xml

right.  this got broken when we did the Java search participant work.
If you search for a Java class and it has references in both plugin.xml and manifest.mf, the annotation model on the source page(s) gets pretty confused and start showing ranges/annotations for one source page on the other.

Problem #2: build.propertiees and plugin.xml
This was always a problem since build.properties appears as part of both the plugin and feature editors.  So a separate standalone is bound to build.properties.
Comment 2 Wassim Melhem CLA 2006-04-17 13:42:36 EDT
*** Bug 137029 has been marked as a duplicate of this bug. ***
Comment 3 Wassim Melhem CLA 2006-05-01 15:35:10 EDT
*** Bug 139543 has been marked as a duplicate of this bug. ***
Comment 4 Janek Lasocki-Biczysko CLA 2006-06-02 09:18:05 EDT
*** Bug 145038 has been marked as a duplicate of this bug. ***
Comment 5 Wassim Melhem CLA 2006-07-18 01:33:24 EDT
*** Bug 150900 has been marked as a duplicate of this bug. ***
Comment 6 Chris Aniszczyk CLA 2006-07-18 01:37:33 EDT
Created attachment 46417 [details]
org.eclipse.pde.ui.patch

give this a whirl
Comment 7 Wassim Melhem CLA 2006-07-18 01:40:13 EDT
chris, see comment 1.  It explains what scenario your patch would break.
Comment 8 Chris Aniszczyk CLA 2006-07-18 01:42:10 EDT
If you're talking about the separate issue... what do you expect when a build.properties editor is opened first? 
Comment 9 Wassim Melhem CLA 2006-07-18 01:43:23 EDT
I'm talking about this:

>this got broken when we did the Java search participant work.
>If you search for a Java class and it has references in both plugin.xml and
>manifest.mf, the annotation model on the source page(s) gets pretty confused
>and start showing ranges/annotations for one source page on the other.
Comment 10 Brian Bauman CLA 2006-09-27 20:58:42 EDT
*** Bug 158992 has been marked as a duplicate of this bug. ***
Comment 11 Wassim Melhem CLA 2007-05-22 11:02:46 EDT
Chris' patch is actually good, but it breaks the Java search participant work.
In fact, that's what we originall had but we purposely broke it because of that.

However, I just tried it on RC1, and the search participant does not get severely broken as it once did.

The annotations are just missing on the plugin.xml source page of a plug-in if there are hits on both the manifest.mf and plugin.xml source pages.

I think this is the lesser of the two evils now.
We should fix the editor opening issue and let Search worry about the annotations thing (bug 188334)

Thoughts?
Comment 12 Brian Bauman CLA 2007-05-23 11:46:09 EDT
wow, what an amazing patch that it can be applied nearly a year later.  That must be an award winning programmer ;-)

I too agree it is the lesser of two evils (I personally don't use the java search to find things in the plug-ins and Manifest).

Since we get annotations in the Manifest but not plugin.xml, I was wondering if some how we could reverse the (search) order and show annotations in the plugin.xml and not the Manifest?  I figured most users would probably match a class from an extension than from the Manifest.  Just a thought (if it can even be done).
Comment 13 Brian Bauman CLA 2007-05-30 10:19:43 EDT
*** Bug 189927 has been marked as a duplicate of this bug. ***
Comment 14 Markus Keller CLA 2007-07-10 12:08:02 EDT
*** Bug 177793 has been marked as a duplicate of this bug. ***
Comment 15 Wassim Melhem CLA 2007-07-23 02:01:40 EDT
Fixed.

The attached patch assumes the manifest files are at the root of the project, and we should be flexible on that front.  We just need to make sure that the build.properties/plugin.xml/MANIFEST.MF are colocated correctly.
Comment 16 Wassim Melhem CLA 2007-07-28 21:55:12 EDT
*** Bug 198197 has been marked as a duplicate of this bug. ***