Class CmsTextDiff

  • All Implemented Interfaces:

    public class CmsTextDiff
    extends java.lang.Object
    implements I_CmsDiffProvider
    Interprets two versions of a resource as text files, and shows a diff view for the two texts.

    This should work for both plaintext files as well as binary documents which from which OpenCms can extract text content.

    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description<com.vaadin.ui.Component> diff​(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2)
      Optionally returns a comparison component to display for the given resource versions.
      protected java.lang.String wrapLinesWithUnchangedStyle​(java.lang.String diff)
      Returns a diff text wrapped with formatting style.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait