public void elementContentReplaced(Object element) { if (!checkState()) return; IEditorInput input = getDocumentKey(); if (input != null && input.equals(element)) { this.fViewer.updateDirtyState(input, getDocumentProvider(), fLeg); } } public void elementContentAboutToBeReplaced(Object element) {
public void elementDirtyStateChanged(Object element, boolean isDirty) { if (!checkState()) return; IEditorInput input = getDocumentKey(); if (input != null && input.equals(element)) { this.fViewer.updateDirtyState(input, getDocumentProvider(), fLeg); } }
@Override public void elementDirtyStateChanged(Object element, boolean isDirty) { if (!checkState()) return; IEditorInput input = getDocumentKey(); if (input != null && input.equals(element)) { this.fViewer.updateDirtyState(input, getDocumentProvider(), fLeg); } }
@Override public void elementContentReplaced(Object element) { if (!checkState()) return; IEditorInput input = getDocumentKey(); if (input != null && input.equals(element)) { this.fViewer.updateDirtyState(input, getDocumentProvider(), fLeg); // recalculate diffs and update controls new UIJob(CompareMessages.DocumentMerger_0) { @Override public IStatus runInUIThread(IProgressMonitor monitor) { update(true); updateStructure(fLeg); return Status.OK_STATUS; } }.schedule(); } } @Override
private void resetDocument() { // Need to remove the document from the manager before refreshing // or the old document will still be found clearCachedDocument(); // TODO: This is fine for now but may need to be revisited if a refresh is performed // higher up as well (e.g. perhaps a refresh request that waits until after all parties // have been notified). if (checkState()) fViewer.refresh(); }
private void resetDocument() { // Need to remove the document from the manager before refreshing // or the old document will still be found clearCachedDocument(); // TODO: This is fine for now but may need to be revisited if a refresh is performed // higher up as well (e.g. perhaps a refresh request that waits until after all parties // have been notified). if (checkState()) fViewer.refresh(); }