public interface IFilePatch2
Modifier and Type | Field and Description |
---|---|
static long |
DATE_UNKNOWN
Special constant that will be returned from get getBeforeDate() or
getAfterDate() if the date is unknown.
|
Modifier and Type | Method and Description |
---|---|
IFilePatchResult |
apply(ReaderCreator content,
PatchConfiguration configuration,
IProgressMonitor monitor)
Apply this patch to the given contents.
|
long |
getAfterDate()
Returns the milliseconds time value of the after date from the patch, or
DATE_UNKNOWN if the date is unknown.
|
long |
getBeforeDate()
Returns the milliseconds time value of the before date from the patch, or
DATE_UNKNOWN if the date is unknown.
|
String |
getHeader()
Return the header information of the patch or
null if there
was no header text. |
IHunk[] |
getHunks()
Returns all the hunks this file patch contains.
|
IPath |
getTargetPath(PatchConfiguration configuration)
Return the target path for this patch.
|
static final long DATE_UNKNOWN
IPath getTargetPath(PatchConfiguration configuration)
configuration
- the patch configurationPatchConfiguration.isReversed()
IFilePatchResult apply(ReaderCreator content, PatchConfiguration configuration, IProgressMonitor monitor)
content
- the contentsconfiguration
- the patch configurationmonitor
- a progress monitorString getHeader()
null
if there
was no header text. The header may be multi-line.null
long getBeforeDate()
long getAfterDate()
IHunk[] getHunks()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.