} catch (CoreException e) {
Activator.handleError(e.getMessage(), e, false);
}
}
final ApplyPatchOperation op;
if (isPatch) {
op = new ApplyPatchOperation(HandlerUtil.getActivePart(event),
(IFile) resource, null, new CompareConfiguration());
} else {
op = new ApplyPatchOperation(HandlerUtil.getActivePart(event),
resource);
}
BusyIndicator.showWhile(Display.getDefault(), op);
return null;
}