Bug 265824 - [Apply Patch] API to get lines from IHunks
Summary: [Apply Patch] API to get lines from IHunks
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard: hasPatch
Keywords: api
Depends on:
Blocks:
 
Reported: 2009-02-23 09:31 EST by Pawel Pogorzelski CLA
Modified: 2009-06-02 07:12 EDT (History)
1 user (show)

See Also:


Attachments
Patch_v01 (2.01 KB, patch)
2009-02-23 11:02 EST, Pawel Pogorzelski CLA
no flags Details | Diff
Patch_v02 (2.14 KB, patch)
2009-02-25 04:29 EST, Pawel Pogorzelski CLA
no flags Details | Diff
Patch_v03 (4.46 KB, patch)
2009-02-25 06:25 EST, Pawel Pogorzelski CLA
pawel.pogorzelski1: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Pogorzelski CLA 2009-02-23 09:31:48 EST
Build ID: I20090217-2200

The method should be something like String[] getUnifiedLines().
Comment 1 Pawel Pogorzelski CLA 2009-02-23 11:02:55 EST
Created attachment 126469 [details]
Patch_v01
Comment 2 Pawel Pogorzelski CLA 2009-02-25 04:29:29 EST
Created attachment 126689 [details]
Patch_v02

I changed implementation of the method to return copy of the array instead of the array itself. Thanks for pointing that out Szymon!
Comment 3 Pawel Pogorzelski CLA 2009-02-25 06:25:46 EST
Created attachment 126699 [details]
Patch_v03

Adding test coverage for the new API.
Comment 4 Szymon Brandys CLA 2009-02-25 06:52:53 EST
Released with minor changes to javadoc.