* @since 3.3
*/
protected void flushContentOld(Object input, IProgressMonitor monitor) {
// write back modified contents
IMergeViewerContentProvider content = (IMergeViewerContentProvider) getContentProvider();
boolean leftEmpty = content.getLeftContent(input) == null;
boolean rightEmpty = content.getRightContent(input) == null;
if (getCompareConfiguration().isLeftEditable() && isLeftDirty()) {
byte[] bytes = getContents(true);
if (rightEmpty && bytes != null && bytes.length == 0)
bytes = null;
setLeftDirty(false);
content.saveLeftContent(input, bytes);
}
if (getCompareConfiguration().isRightEditable() && isRightDirty()) {
byte[] bytes = getContents(false);
if (leftEmpty && bytes != null && bytes.length == 0)
bytes = null;
setRightDirty(false);
content.saveRightContent(input, bytes);
}
}