Bug 169373 - [Manifest Editor] Provide a quickfix / flag for Provide-Package
Summary: [Manifest Editor] Provide a quickfix / flag for Provide-Package
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.4 M1   Edit
Assignee: Brock Janiczak CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, contributed
Depends on:
Blocks:
 
Reported: 2007-01-02 16:32 EST by Chris Aniszczyk CLA
Modified: 2007-07-26 14:58 EDT (History)
5 users (show)

See Also:
wassim.melhem: review? (baumanbr)


Attachments
Patch to add validate Provide-Package and provide quick fix (9.09 KB, patch)
2007-07-21 02:42 EDT, Brock Janiczak CLA
no flags Details | Diff
minor modification to Brock's patch (9.86 KB, patch)
2007-07-26 12:31 EDT, Brian Bauman CLA
no flags Details | Diff
mylyn/context/zip (2.15 KB, application/octet-stream)
2007-07-26 14:58 EDT, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Aniszczyk CLA 2007-01-02 16:32:45 EST
Provide-Package is deprecated and should have a proper warning. It would also be nice to have a quickfix so it could be moved to the Export-Package header.
Comment 1 Brian Bauman CLA 2007-01-23 17:03:32 EST
hey Chris, are you working on this one?
Comment 2 Brock Janiczak CLA 2007-07-21 02:42:51 EDT
Created attachment 74290 [details]
Patch to add validate Provide-Package and provide quick fix

Hope it isn't too early to start on the bugday issues, but I have attached a patch that should do what you want.

Adds a new check to mark the Provide-Package header as deprecated if the target version is >= 3.1 (I assume this is when it was deprecated).  Also adds a quick fix for the problem that will rename the header to Export-Package.
Comment 3 Chris Aniszczyk CLA 2007-07-22 15:30:49 EDT
It's not too early Brock, thanks :)

Sorry for the slow reply on my part, I was away this weekend.

I added you to the participants list here:
http://wiki.eclipse.org/BugDayJuly2007#Participants

I'll look over the patch tomorrow and if it's good, I'll release.

Thanks!
Comment 4 Wassim Melhem CLA 2007-07-25 14:48:27 EDT
Brian to review patch.
Comment 5 Brian Bauman CLA 2007-07-26 12:31:54 EDT
Created attachment 74705 [details]
minor modification to Brock's patch

Brock, thanks for the patch!  It looked really good.  I went ahead and made two minor changes (along with copyright updates).  I am posting an updated patch for Chris to review.

1. Use isCheckDeprecated() function with a slightly different report(...) function call.  Your way worked fine, I just changed it to be more consistent with the way we check/report other deprecated checks.

2. Instead of validating TargetVersion >= 3.1, I used the fOSGiR4 variable.  I opened bug 197984 to deal with an inconsistency in the way we do singleton validation.  This validation is very similar so I just went ahead and updated it.
Comment 6 Chris Aniszczyk CLA 2007-07-26 14:58:10 EDT
+1, I committed to HEAD.

Thanks for the review Brian and thanks for the hard work Brock.

Now you need to send a picture with a leafy background so we can include it on our contributors page :)
Comment 7 Chris Aniszczyk CLA 2007-07-26 14:58:14 EDT
Created attachment 74720 [details]
mylyn/context/zip