org.ceryle.ui.xnode
Class XNodeContextualDiffProvider
java.lang.Object
org.ceryle.ui.xnode.XNodeContextualDiffProvider
- All Implemented Interfaces:
- XNodeDiffProvider
public class XNodeContextualDiffProvider
- extends Object
- implements XNodeDiffProvider
A diff provider which highlights changes word-by-word using CSS.
This is based on the ContextualDiffProvider supplied with JSPWiki,
and uses a private internal class, now a utility class called
ChangeMerger. This handles diffs between
XNode content, generating HTML (rather than XHTML) for use in Java
Swing displays.
The colors used for display are set by setting System properties
on ChangeMerger, not here.
- Author:
- Murray Altheim
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XNodeContextualDiffProvider
public XNodeContextualDiffProvider()
makeDiffHtml
public String makeDiffHtml(String oldText,
String newText)
- Returns a colored diff of the two regions.
- Specified by:
makeDiffHtml in interface XNodeDiffProvider
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.