Class UnifiedDiffEvent
java.lang.Object
org.eclipse.compare.unifieddiff.UnifiedDiffEvent
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 Summary
ConstructorsConstructorDescriptionUnifiedDiffEvent(UnifiedDiff.ToolbarAction action, List<UnifiedDiffHunk> hunks) Creates an event for one or more resolved hunks. -
Method Summary
Modifier and TypeMethodDescriptionReturns the executed all-diffs action, ornullwhen this event describes an individual hunk resolution.getHunks()Returns the resolved hunks.
-
Constructor Details
-
UnifiedDiffEvent
Creates an event for one or more resolved hunks.- Parameters:
action- the executed all-diffs action, ornullfor an individual hunk resolutionhunks- the resolved hunks
-
-
Method Details
-
getAction
Returns the executed all-diffs action, ornullwhen this event describes an individual hunk resolution. -
getHunks
Returns the resolved hunks. The returned list is immutable.
-