diff --git a/com.avaloq.tools.ddk.xtext/src/com/avaloq/tools/ddk/xtext/modelinference/InferredModelAssociator.java b/com.avaloq.tools.ddk.xtext/src/com/avaloq/tools/ddk/xtext/modelinference/InferredModelAssociator.java index 4055c621c..d9726cc2a 100644 --- a/com.avaloq.tools.ddk.xtext/src/com/avaloq/tools/ddk/xtext/modelinference/InferredModelAssociator.java +++ b/com.avaloq.tools.ddk.xtext/src/com/avaloq/tools/ddk/xtext/modelinference/InferredModelAssociator.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.Set; -import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import org.eclipse.emf.common.notify.impl.AdapterImpl; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.common.util.URI; @@ -37,7 +37,6 @@ import com.avaloq.tools.ddk.xtext.scoping.ImplicitReferencesAdapter; import com.google.common.collect.ImmutableSet; import com.google.inject.Inject; -import com.google.inject.Provider; import com.google.inject.Singleton; @@ -59,7 +58,7 @@ public class InferredModelAssociator implements IInferredModelAssociations, IInf private IReferableElementsUnloader.GenericUnloader unloader; @Inject - private Provider inferrerProvider; + private IModelInferrer inferrer; /** * An adapter that holds the mapping between source- and inferred-model elements. @@ -224,7 +223,6 @@ public final void installDerivedState(final DerivedStateAwareResource resource, * designates the current phase */ protected void inferTargetModel(final EObject eObject, final IAcceptor acceptor, final boolean isPreLinkingPhase) { - IModelInferrer inferrer = inferrerProvider.get(); inferrer.inferTargetModel(eObject, acceptor, isPreLinkingPhase); }