API compatibility

commit 89b43a837714f3b6315e07dd93a57617a9ce848c broke API
compatibility by removing this constructor.

Change-Id: Ibb940c3ca11fef14b6195147921d9b7ba2f3c140
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/impl/MatchEngineFactoryImpl.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/impl/MatchEngineFactoryImpl.java
index 978df71..4a4ac5a 100644
--- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/impl/MatchEngineFactoryImpl.java
+++ b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/impl/MatchEngineFactoryImpl.java
@@ -103,6 +103,21 @@
 	}
 
 	/**
+	 * Constructor that instantiate a {@link DefaultMatchEngine} with the given parameters.
+	 * 
+	 * @param matcher
+	 *            The matcher that will be in charge of pairing EObjects together for this comparison process.
+	 * @param comparisonFactory
+	 *            factory that will be use to instantiate Comparison as return by match() methods.
+	 * @deprecated Using this will ignore any weight provider or equality helper extension provided through
+	 *             extension points. Use another of the constructors if you need this functionality.
+	 */
+	@Deprecated
+	public MatchEngineFactoryImpl(IEObjectMatcher matcher, IComparisonFactory comparisonFactory) {
+		matchEngine = new DefaultMatchEngine(matcher, comparisonFactory);
+	}
+
+	/**
 	 * {@inheritDoc}
 	 * 
 	 * @see org.eclipse.emf.compare.match.IMatchEngine.Factory#getMatchEngine()
@@ -153,7 +168,11 @@
 	 */
 	void setWeightProviderRegistry(WeightProvider.Descriptor.Registry registry) {
 		this.weightProviderRegistry = registry;
-		this.matchEngine = null;
+		// TODO remove this condition once the deprecated MatchEngineFactoryImpl(IEObjectMatcher,
+		// IComparisonFactory) is removed
+		if (shouldUseIdentifiers != null) {
+			this.matchEngine = null;
+		}
 	}
 
 	/**
@@ -165,7 +184,11 @@
 	public void setEqualityHelperExtensionProviderRegistry(
 			EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) {
 		this.equalityHelperExtensionProviderRegistry = equalityHelperExtensionProviderRegistry;
-		this.matchEngine = null;
+		// TODO remove this condition once the deprecated MatchEngineFactoryImpl(IEObjectMatcher,
+		// IComparisonFactory) is removed
+		if (shouldUseIdentifiers != null) {
+			this.matchEngine = null;
+		}
 	}
 
 }