| Summary: | [api] Make DefaultCharacterPairMatcher.findPeer public | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Christian Plesner Hansen <stderr> |
| Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.3 | Keywords: | api, helpwanted |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Christian Plesner Hansen
There's no findPeer(...) method. Did you mean findMatchingPeer(...)? If so, this can't be made public since it needs the private DocumentPartitionAccessor which we don't want to make public. It turns out that I had refactored the class and then forgotten about it. So let me rephrase the feature request. I suggest that performMatch be refactored so that all code except for the first line is made into a new method (which could be called findPeer) that takes the document, offset and prevChar as arguments. This new method should be public for the reasons described in the original request. I'd accept a good quality patch with some tests. No plans to do this. |