DocumentLineDiffer differ= getDiffer(true); // create if needed, so the user does not have to toggle display when he selects a reference
if (differ == null)
return;
if (fEditor instanceof ITextEditorExtension3) {
ITextEditorExtension3 extension= (ITextEditorExtension3) fEditor;
IQuickDiffReferenceProvider provider= getProvider();
if (provider != null) {
provider.setActiveEditor(fEditor);
if (provider.isEnabled()) {
differ.setReferenceProvider(provider);
extension.showChangeInformation(true);
setEnabled(true);
} else
setEnabled(false);
}
}