Class UnifiedDiffEvent

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

public final class UnifiedDiffEvent extends Object
Describes one or more unified-diff hunks resolved by the user.

An event for an all-diffs action contains every hunk resolved by that action.

  • Constructor Details

    • UnifiedDiffEvent

      public UnifiedDiffEvent(UnifiedDiff.ToolbarAction action, List<UnifiedDiffHunk> hunks)
      Creates an event for one or more resolved hunks.
      Parameters:
      action - the executed all-diffs action, or null for an individual hunk resolution
      hunks - the resolved hunks
  • Method Details

    • getAction

      public UnifiedDiff.ToolbarAction getAction()
      Returns the executed all-diffs action, or null when this event describes an individual hunk resolution.
    • getHunks

      public List<UnifiedDiffHunk> getHunks()
      Returns the resolved hunks. The returned list is immutable.