Bug 124669 React to change in Team Compare UI
I have refactored the ICompareAdapter so that it no longer provides the strucutre and content compare views. Instead, clients should register their viewers by either extension (ITypedElement#getType()) or content type. The class AbstractRefactoringCompareAdapter has a findContentViewer that should be removed. The way to get the viewer now is to register an IViewerCreator with the org.eclipse.compare.contentMergeViewer extension point.
org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/model/AbstractRefactoringCompareAdapter.java
import org.eclipse.ltk.internal.ui.refactoring.model.RefactoringDescriptorCompareViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.compare.CompareConfiguration;
import org.eclipse.compare.structuremergeviewer.ICompareInput;
/**
 * Partial implementation of a refactoring-aware compare adapter.
 * <p>
 * The refactoring compare adapter provides compare support for the refactoring
 * history objects associated with the refactoring model provider.
 * </p>
 * <p>
 * Note: this class is intended to be extended by clients who need refactoring
 * support in a synchronization viewer.
 * </p>
 * <p>
 * Note: This API is considered experimental and may change in the near future.
 * </p>
 * 
 * @see AbstractCompareAdapter
 * 
 * @since 3.2
 */
public abstract class AbstractRefactoringCompareAdapter extends AbstractCompareAdapter {
	/**
	 * {@inheritDoc}
	 */
	public ICompareInput asCompareInput(final ISynchronizationContext context, final Object element) {
		if (element instanceof RefactoringDescriptorProxy)