On Wed, May 16, 2012 at 8:48 AM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
On Wed, May 16, 2012 at 8:45 AM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
On Tue, May 15, 2012 at 9:13 PM, Ludovic Dubost
<ludovic(a)xwiki.com> wrote:
Hi Thomas,
There is the DiffPlugin which is used by the Diff code in the XWiki and
Document classes.
This API can also be used by applications.
I included some HTML display APIs in this DiffPlugin
If you are moving to a diff component it would make sense to migrate this
code to the new component.
I'm doing something more generic than a String diff (look at the
current API). And HTML presentation of the diff iss presentation stuff
and are not going to be in this API.
So the API I have already cover more that what is in the diff plugin
(minus the HTML stuff of course).
As for the Document diff, no it's not using this plugin. At least
Document#getContentDiff use JRCS API.
Actually looks like getDifferencesAsHTML is used directly by the UI
and Document#getContentDiff does not seems very used. In any case
there is too completely different things here for the same thing as
well as a mixup between base API and UI which is not very nice.