|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFilePatch
A representation of a file patch that can be applied to an input stream.
ApplyPatchOperation.parsePatch(org.eclipse.core.resources.IStorage)
ApplyPatchOperation.parsePatch(org.eclipse.core.resources.IStorage)
.Field Summary | |
---|---|
static long |
DATE_UNKNOWN
Special constant that will be returned from get getBeforeDate() or getAfterDate() if the date is unknown. |
Method Summary | |
---|---|
IFilePatchResult |
apply(IStorage contents,
PatchConfiguration configuration,
IProgressMonitor monitor)
Apply this patch to the given file 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. |
IPath |
getTargetPath(PatchConfiguration configuration)
Return the target path for this patch. |
Methods inherited from interface org.eclipse.compare.patch.IFilePatch2 |
---|
apply, getHunks |
Field Detail |
---|
static final long DATE_UNKNOWN
Method Detail |
---|
IPath getTargetPath(PatchConfiguration configuration)
getTargetPath
in interface IFilePatch2
configuration
- the patch configuration
PatchConfiguration.isReversed()
IFilePatchResult apply(IStorage contents, PatchConfiguration configuration, IProgressMonitor monitor)
contents
- the file contentsconfiguration
- the patch configurationmonitor
- a progress monitor
String getHeader()
null
if there was no header text.
The header may be multi-line.
getHeader
in interface IFilePatch2
null
long getBeforeDate()
getBeforeDate
in interface IFilePatch2
long getAfterDate()
getAfterDate
in interface IFilePatch2
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.