# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
Interface and Description
org.eclipse.emf.compare.rcp.ui.mergeviewer.item.IMergeViewerItem.Container IMergeViewerItem.Container is no longer needed since its functionality is now provided by `IMergeViewerItemContentProvider`. Use an `IMergeViewerItem` instead.

Deprecated Classes
Class and Description
org.eclipse.emf.compare.provider.AdapterFactoryUtil Use `AdapterFactoryItemDelegator` instead.
org.eclipse.emf.compare.command.impl.CopyCommand Use `MergeCommand` instead.
org.eclipse.emf.compare.utils.DiffUtil Not intendended to be used by clients
org.eclipse.emf.compare.provider.ForwardingItemProvider Use `IItemProviderDecorator` and `DecoratorAdapterFactory` instead.
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.Container
org.eclipse.emf.compare.merge.ResourceLocationChangeMerger `ResourceLocationChange`s have been replaced by `ResourceAttachmentChange`s of kind Move.

Deprecated Methods
Method and Description
org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.WrappableTreeViewer.addSelectionListener(Control, SelectionListener)
org.eclipse.emf.compare.utils.EMFComparePredicates.containmentReferenceChange() use `EMFComparePredicates.CONTAINMENT_REFERENCE_CHANGE`;
org.eclipse.emf.compare.Diff.copyLeftToRight()
org.eclipse.emf.compare.internal.spec.ResourceAttachmentChangeSpec.copyLeftToRight()
org.eclipse.emf.compare.internal.spec.ReferenceChangeSpec.copyLeftToRight() Use `IMerger.copyLeftToRight(org.eclipse.emf.compare.Diff, org.eclipse.emf.common.util.Monitor)` instead. See javadoc of IMerger.Registry for usage instructions.
org.eclipse.emf.compare.internal.spec.AttributeChangeSpec.copyLeftToRight() Use `IMerger.copyLeftToRight(org.eclipse.emf.compare.Diff, org.eclipse.emf.common.util.Monitor)` instead. See javadoc of IMerger.Registry for usage instructions.
org.eclipse.emf.compare.Diff.copyRightToLeft()
org.eclipse.emf.compare.internal.spec.ResourceAttachmentChangeSpec.copyRightToLeft()
org.eclipse.emf.compare.internal.spec.ReferenceChangeSpec.copyRightToLeft() Use `IMerger.copyRightToLeft(org.eclipse.emf.compare.Diff, org.eclipse.emf.common.util.Monitor)` instead. See javadoc of IMerger.Registry for usage instructions.
org.eclipse.emf.compare.internal.spec.AttributeChangeSpec.copyRightToLeft() Use `IMerger.copyRightToLeft(org.eclipse.emf.compare.Diff, org.eclipse.emf.common.util.Monitor)` instead. See javadoc of IMerger.Registry for usage instructions.
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.createBasicContainer(EObject)
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.createBasicContainer(ResourceAttachmentChange)
org.eclipse.emf.compare.domain.ICompareEditingDomain.createCopyCommand(List<? extends Diff>, boolean, IMerger.Registry)
org.eclipse.emf.compare.EMFCompare.createDefaultScope(Notifier, Notifier) this was only a delegation to the publicly accessible `DefaultComparisonScope`... it will be removed in a subsequent release.
org.eclipse.emf.compare.EMFCompare.createDefaultScope(Notifier, Notifier, Notifier) this was only a delegation to the publicly accessible `DefaultComparisonScope`... it will be removed in a subsequent release.

org.eclipse.emf.compare.rcp.EMFCompareRCPPlugin.createFilteredAdapterFactoryRegistry()
Use `EMFCompareRCPPlugin.createFilteredAdapterFactoryRegistry(Map)` to take the context into consideration. Typically, you would provide the comparison as a context map by passing `ImmutableMap.of(IContextTester.CTX_COMPARISON, comparison)` as an argument. If no comparison context is available, use an empty context.

org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.createInsertionPoints(Comparison, EStructuralFeature, List<? extends IMergeViewerItem>, List<? extends Diff>)
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.createMergeViewerItemFrom(Collection<?>)
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.createMergeViewerItemFrom(EObject)
org.eclipse.emf.compare.ide.internal.utils.ForwardingXMLHelper.createObject(EFactory, String)
org.eclipse.emf.compare.match.DefaultMatchEngine.createResourceMatcher() use `DefaultMatchEngine` constructor with `StrategyResourceMatcher` parameter instead.
org.eclipse.emf.compare.merge.ResourceAttachmentChangeMerger.deleteFormerResourceIfNecessary(Comparison, Resource, boolean) Use `ResourceAttachmentChangeMerger#deleteFormerResourceIfNecessary(ResourceAttachmentChange, Resource, boolean)` instead.
org.eclipse.emf.compare.merge.ResourceAttachmentChangeMerger.deleteResource(Resource) Not used anymore, it's not the responsibility of the ResourceAttachmentChangeMerger to delete resources. This is now achieved by installing a `ResourceChangeAdapter` on comparisons.
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.filteredDiffs(Iterable<? extends Diff>, Predicate<? super EObject>, IDifferenceGroupProvider)
org.eclipse.emf.compare.match.resource.RootIDMatchingStrategy.findMatch(Resource, Iterable<Resource>) use `RootIDMatchingStrategy.findMatches(Resource, Iterable)` instead.
org.eclipse.emf.compare.utils.DiffUtil.getAssociatedDiffs(Diff, Iterable<Diff>, boolean)
org.eclipse.emf.compare.utils.EqualityHelper.getCache()
org.eclipse.emf.compare.domain.ICompareEditingDomain.getChangeRecorder()
org.eclipse.emf.compare.impl.CompareFactoryImpl.getPackage()
org.eclipse.emf.compare.utils.EqualityHelper.getURI(EObject)
org.eclipse.emf.compare.utils.EqualityHelper.matchingValues(Comparison, Object, Object)
org.eclipse.emf.compare.merge.ResourceAttachmentChangeMerger.mustDelete(Resource, ResourceAttachmentChange, boolean) Don't use this method.
org.eclipse.emf.compare.internal.dmp.diff_match_patch.patch_make(String, String, LinkedList<diff_match_patch.Diff>) Prefer patch_make(String text1, LinkedList<Diff> diffs).
org.eclipse.emf.compare.merge.AttributeChangeMerger.resetInTarget(AttributeChange, boolean) this has been refactored into `AttributeChangeMerger.changeValue(AttributeChange, boolean)`.
org.eclipse.emf.compare.diff.DiffBuilder.resourceLocationChange(MatchResource, String, String, DifferenceKind, DifferenceSource) `ResourceLocationChange`s have been replaced by `ResourceAttachmentChange`s of kind Move.
org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.WrappableTreeViewer.updateChildren(Widget, Object, Object[])
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.visibleInMergeViewer(Predicate<? super EObject>, IDifferenceGroupProvider)
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.yieldsInsertionPoint(Iterable<Diff>)
org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl.MergeViewerItem.yieldsMergeViewerItem(Collection<?>)

Deprecated Constructors
Constructor and Description
org.eclipse.emf.compare.utils.EqualityHelper() use the EqualityHelper(Cache) constructor instead.