org.eclipse.xtext.common.services.Ecore2XtextTerminalConverters Java Examples

The following examples show how to use org.eclipse.xtext.common.services.Ecore2XtextTerminalConverters. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Ecore2XtextValueConverterServiceFragment2.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void generate() {
	new GuiceModuleAccess.BindingFactory()
			.addTypeToType(TypeReference.typeRef(IValueConverterService.class),
					TypeReference.typeRef(Ecore2XtextTerminalConverters.class))
			.contributeTo(getLanguage().getRuntimeGenModule());
}
 
Example #2
Source File: Ecore2XtextValueConverterServiceFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
	return new BindFactory().addTypeToType(IValueConverterService.class.getName(), Ecore2XtextTerminalConverters.class.getName()).getBindings();
}
 
Example #3
Source File: AbstractEcore2XtextTestRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IValueConverterService> bindIValueConverterService() {
	return Ecore2XtextTerminalConverters.class;
}