|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of a file patch that can be applied to an input stream.
This interface is not intended to be implemented by clients. Clients can
obtain file patches by calling
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. |
Field Detail |
public static final long DATE_UNKNOWN
Method Detail |
public IPath getTargetPath(PatchConfiguration configuration)
configuration
- the patch configuration
PatchConfiguration.isReversed()
public IFilePatchResult apply(IStorage contents, PatchConfiguration configuration, IProgressMonitor monitor)
contents
- the file contentsconfiguration
- the patch configurationmonitor
- a progress monitor
public String getHeader()
null
if there was no header text.
The header may be multi-line.
null
public long getBeforeDate()
public long getAfterDate()
|
Eclipse Platform Release 3.4 |
||||||||||
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, 2008. All rights reserved.