Uses of Interface
org.eclipse.compare.patch.IHunk
Packages that use IHunk
Package
Description
Provides support for applying and working with patches.
-
Uses of IHunk in org.eclipse.compare.patch
Methods in org.eclipse.compare.patch that return IHunkModifier and TypeMethodDescriptionstatic IHunkPatchBuilder.createHunk(int start, String[] lines) Creates an IHunk instance.IHunk[]IFilePatch2.getHunks()Returns all the hunks this file patch contains.IHunk[]IFilePatchResult.getRejects()Return the portions of the patch (referred to a hunks) that could not be applied.Methods in org.eclipse.compare.patch with parameters of type IHunkModifier and TypeMethodDescriptionstatic IFilePatch2PatchBuilder.addHunks(IFilePatch2 filePatch, IHunk[] toAdd) Adds IHunks to a given IFilePatch2 and performs recalculation of all hunks' after positions.static IFilePatch2PatchBuilder.createFilePatch(IPath oldPath, long oldDate, IPath newPath, long newDate, IHunk[] hunks) Creates an IFilePatch2 instance and performs recalculation of all hunks' after positions.static IFilePatch2PatchBuilder.removeHunks(IFilePatch2 filePatch, IHunk[] toRemove) Removes IHunks from a given IFilePatch2 and performs recalculation of all hunks' after positions.booleanReturns true if the given hunk should be applied