Bug 60108 - SearchMatch should implement toString()
Summary: SearchMatch should implement toString()
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 10:56 EDT by Markus Keller CLA
Modified: 2004-05-18 13:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-04-27 10:56:06 EDT
Since we often look at search results while debugging, it would be nice to
have SearchMatch#toString() return a terse representation of the match
(with getElement().toString() at the end, since that can become rather lengthy).
Comment 1 Jerome Lanneluc CLA 2004-04-27 12:49:25 EDT
Added toString() on SearchMatch. It shows the offset, the length and the 
element of the match.
Comment 2 Markus Keller CLA 2004-05-05 08:30:10 EDT
Jerome, could you please add a "\n" at the end of the string?
Currently, an array of search matches is barely readable in the debugger.
Comment 3 Jerome Lanneluc CLA 2004-05-06 06:58:42 EDT
Done
Comment 4 Frederic Fusier CLA 2004-05-18 13:41:27 EDT
Verified for 3.0 M9 with build I200405180816.