|
@@ -12,10 +12,12 @@ package org.yakindu.sct.model.sgraph.test;
|
|
|
|
|
|
import org.eclipse.emf.ecore.EValidator;
|
|
|
import org.eclipse.xtext.Constants;
|
|
|
+import org.yakindu.sct.model.stext.resource.StextResource;
|
|
|
|
|
|
import com.google.inject.Binder;
|
|
|
import com.google.inject.Module;
|
|
|
import com.google.inject.name.Names;
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @author andreas muelder - Initial contribution and API
|
|
@@ -24,11 +26,10 @@ import com.google.inject.name.Names;
|
|
|
public class SGraphTestModule implements Module {
|
|
|
|
|
|
public void configure(Binder binder) {
|
|
|
- binder.bind(String.class)
|
|
|
- .annotatedWith(Names.named(Constants.LANGUAGE_NAME))
|
|
|
+ binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME))
|
|
|
.toInstance("org.yakindu.sct.model.sgraph");
|
|
|
- binder.bind(EValidator.Registry.class).toInstance(
|
|
|
- EValidator.Registry.INSTANCE);
|
|
|
+ binder.bind(EValidator.Registry.class).toInstance(EValidator.Registry.INSTANCE);
|
|
|
+ binder.bind(org.eclipse.emf.ecore.resource.Resource.class).to(StextResource.class);
|
|
|
}
|
|
|
|
|
|
}
|