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

Bug 183224

Summary: [Viewers] Make TokenComparator API
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: CompareAssignee: Michael Valenta <Michael.Valenta>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Szymon.Brandys, tomasz.zarna
Version: 3.3Keywords: api
Target Milestone: 3.4 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2007-04-19 13:20:18 EDT
HEAD

org.eclipse.compare.internal.TokenComparator is of general interest (e.g. as a nested comparator as in bug 78063 comment 14) and should be made API (post 3.3).

It's possible for clients to get a TokenComparator via TextMergeViewer.createTokenComparator(String), but that's a hack.

I'm not sure why there's a second constructor with a boolean shouldEscape. It's not used anywhere, and I guess you should remove it.
Comment 1 Michael Valenta CLA 2007-07-18 15:19:21 EDT
Fix released to HEAD
Comment 2 Tomasz Zarna CLA 2007-08-08 06:21:23 EDT
Verified by code inspection.