Class UnifiedDiffMode

java.lang.Object
org.eclipse.compare.unifieddiff.UnifiedDiffMode

public class UnifiedDiffMode extends Object
  • Field Details

    • REPLACE_MODE

      public static final UnifiedDiffMode REPLACE_MODE
      Diffs are directly applied in the editor. Users have the possibility to keep or undo the applied diffs.
    • OVERLAY_MODE

      public static final UnifiedDiffMode OVERLAY_MODE
      The source in the editor is not modified. Diffs are shown as code mining and users have the possibility to apply or hide individual diffs.
    • OVERLAY_READ_ONLY_MODE

      public static final UnifiedDiffMode OVERLAY_READ_ONLY_MODE
      The source in the editor is not modified. Diffs are shown as code mining and users cannot apply or dismiss the diffs (read-only mode).
    • REVERT_MODE

      public static final UnifiedDiffMode REVERT_MODE
      The current source in the editor represents the latest/newest version, which is compared against an older version. Diffs are shown so that they can be reverted to the old version. Unlike the other modes, the passed source is treated as the base (old version) and the current source as the modified (new version).
  • Method Details