public class ContextualDiffProvider extends Object implements DiffProvider
DiffProvider.NullDiffProvider| Modifier and Type | Field and Description |
|---|---|
static String |
ALTERNATING_SPACE_HTML |
static String |
CHANGE_END_HTML |
static String |
CHANGE_START_HTML |
static String |
DELETION_END_HTML |
static String |
DELETION_START_HTML |
static String |
DIFF_END |
static String |
DIFF_START |
static String |
ELIDED_HEAD_INDICATOR_HTML |
static String |
ELIDED_TAIL_INDICATOR_HTML |
static String |
INSERTION_END_HTML |
static String |
INSERTION_START_HTML |
static String |
LINE_BREAK_HTML |
boolean |
m_emitChangeNextPreviousHyperlinks |
static String |
PROP_UNCHANGED_CONTEXT_LIMIT
A jspwiki.properties value to define how many characters are shown around the change context.
|
LATEST_VERSION| Constructor and Description |
|---|
ContextualDiffProvider()
Constructs this provider.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProviderInfo() |
void |
initialize(Engine engine,
Properties properties) |
String |
makeDiffHtml(Context ctx,
String wikiOld,
String wikiNew)
Do a colored diff of the two regions.
|
public static final String PROP_UNCHANGED_CONTEXT_LIMIT
public boolean m_emitChangeNextPreviousHyperlinks
public static String CHANGE_START_HTML
public static String CHANGE_END_HTML
public static String DIFF_START
public static String INSERTION_START_HTML
public static String INSERTION_END_HTML
public static String DELETION_START_HTML
public static String DELETION_END_HTML
public static String ELIDED_HEAD_INDICATOR_HTML
public static String ELIDED_TAIL_INDICATOR_HTML
public static String LINE_BREAK_HTML
public static String ALTERNATING_SPACE_HTML
public ContextualDiffProvider()
public String getProviderInfo()
getProviderInfo in interface WikiProvider{@inheritDoc}public void initialize(Engine engine, Properties properties) throws NoRequiredPropertyException, IOException
initialize in interface WikiProviderNoRequiredPropertyExceptionIOException{@inheritDoc}public String makeDiffHtml(Context ctx, String wikiOld, String wikiNew)
makeDiffHtml in interface DiffProviderctx - The Wiki ContextwikiOld - the old textwikiNew - the new text{@inheritDoc}Copyright © 2001-2020 The Apache Software Foundation. All rights reserved.