*/
public static IFilePatch2[] parsePatch(ReaderCreator content)
throws CoreException {
BufferedReader reader = new BufferedReader(content.createReader());
try {
PatchReader patchReader = new PatchReader();
patchReader.parse(reader);
return patchReader.getAdjustedDiffs();
} catch (IOException e) {
throw new CoreException(new Status(IStatus.ERROR,
ComparePlugin.PLUGIN_ID, 0, e.getMessage(), e));
} finally {
try {