|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.ChangeMerger
public class ChangeMerger
This class does the housekeeping for merging changes and also makes sure that the whole change process is threadsafe by encapsulating all necessary variables. This class is derived from a helper class used in the ContextualDiffProvider supplied with JSPWiki.
To set the add and remove color styles, set the System properties, e.g.:
System.setProperty(ChangeMerger.PROPERTY_ADD_COLOR,"#3000d0"); System.setProperty(ChangeMerger.PROPERTY_REMOVE_COLOR,"aa0000");
| Field Summary | |
|---|---|
static String |
ADD_COLOR
The default color to use for highlighting added text. |
static String |
PROPERTY_ADD_COLOR
The name of the ChangerMerger add-color property. |
static String |
PROPERTY_REMOVE_COLOR
The name of the ChangerMerger remove-color property. |
static String |
REMOVE_COLOR
The default color to use for highlighting removed text. |
| Constructor Summary | |
|---|---|
ChangeMerger(StringBuffer sb,
String[] origStrings)
Constructor for default ChangeMerger. |
|
| Method Summary | |
|---|---|
void |
shutdown()
|
void |
visit(org.apache.commons.jrcs.diff.AddDelta delta)
|
void |
visit(org.apache.commons.jrcs.diff.ChangeDelta delta)
|
void |
visit(org.apache.commons.jrcs.diff.DeleteDelta delta)
|
void |
visit(org.apache.commons.jrcs.diff.Revision rev)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String ADD_COLOR
public static String REMOVE_COLOR
public static final String PROPERTY_ADD_COLOR
public static final String PROPERTY_REMOVE_COLOR
| Constructor Detail |
|---|
public ChangeMerger(StringBuffer sb,
String[] origStrings)
| Method Detail |
|---|
public void visit(org.apache.commons.jrcs.diff.Revision rev)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitorpublic void visit(org.apache.commons.jrcs.diff.AddDelta delta)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitorpublic void visit(org.apache.commons.jrcs.diff.ChangeDelta delta)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitorpublic void visit(org.apache.commons.jrcs.diff.DeleteDelta delta)
visit in interface org.apache.commons.jrcs.diff.RevisionVisitorpublic void shutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||