|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFilePatch2
A representation of a file patch that can be applied to an input stream.
| 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(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. |
java.lang.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. |
| Field Detail |
|---|
static final long DATE_UNKNOWN
| Method Detail |
|---|
IPath getTargetPath(PatchConfiguration configuration)
configuration - the patch configuration
PatchConfiguration.isReversed()
IFilePatchResult apply(ReaderCreator content,
PatchConfiguration configuration,
IProgressMonitor monitor)
content - the contentsconfiguration - the patch configurationmonitor - a progress monitor
java.lang.String getHeader()
null if there
was no header text. The header may be multi-line.
nulllong getBeforeDate()
long getAfterDate()
IHunk[] getHunks()
|
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.