|
Eclipse Platform Release 3.3 |
|||||||||||
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)
Method Summary | |
---|---|
IFilePatchResult |
apply(IStorage contents,
PatchConfiguration configuration,
IProgressMonitor monitor)
Apply this patch to the given file contents. |
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. |
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
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.