public class ContextualDiffProvider extends Object implements DiffProvider
DiffProvider.NullDiffProvider
Modifier and Type | Field and Description |
---|---|
String |
m_alternatingSpaceHtml |
String |
m_changeEndHtml |
String |
m_changeStartHtml |
String |
m_deletionEndHtml |
String |
m_deletionStartHtml |
String |
m_diffEnd |
String |
m_diffStart |
String |
m_elidedHeadIndicatorHtml |
String |
m_elidedTailIndicatorHtml |
boolean |
m_emitChangeNextPreviousHyperlinks |
String |
m_insertionEndHtml |
String |
m_insertionStartHtml |
String |
m_lineBreakHtml |
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()
Return a valid HTML string for information.
|
void |
initialize(WikiEngine engine,
Properties properties)
Initializes the page provider.
|
String |
makeDiffHtml(WikiContext 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 String m_changeStartHtml
public String m_changeEndHtml
public String m_diffStart
public String m_insertionStartHtml
public String m_insertionEndHtml
public String m_deletionStartHtml
public String m_deletionEndHtml
public String m_elidedHeadIndicatorHtml
public String m_elidedTailIndicatorHtml
public String m_lineBreakHtml
public String m_alternatingSpaceHtml
public ContextualDiffProvider()
public String getProviderInfo()
WikiProvider
getProviderInfo
in interface WikiProvider
{@inheritDoc}
public void initialize(WikiEngine engine, Properties properties) throws NoRequiredPropertyException, IOException
WikiProvider
initialize
in interface WikiProvider
engine
- WikiEngine to own this providerproperties
- A set of properties used to initialize this providerNoRequiredPropertyException
- If the provider needs a property which is not found in the property setIOException
- If there is an IO problem{@inheritDoc}
public String makeDiffHtml(WikiContext ctx, String wikiOld, String wikiNew)
makeDiffHtml
in interface DiffProvider
ctx
- The Wiki ContextwikiOld
- the old textwikiNew
- the new text{@inheritDoc}
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.