瀏覽代碼

added rsource binding

Andreas Muelder 9 年之前
父節點
當前提交
1a7cf642c7

+ 5 - 4
test-plugins/org.yakindu.sct.model.sgraph.test/src/org/yakindu/sct/model/sgraph/test/SGraphTestModule.java

@@ -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);
 	}
 
 }