Java Code Examples for org.eclipse.xtext.conversion.impl.STRINGValueConverter

The following examples show how to use org.eclipse.xtext.conversion.impl.STRINGValueConverter. These examples are extracted from open source projects. 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 Project: xtext-core   Source File: STRINGConverterTest.java    License: Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void setUp() throws Exception {
	super.setUp();
	with(XtextStandaloneSetup.class);
	valueConverter = get(STRINGValueConverter.class);
	valueConverter.setRule(GrammarUtil.findRuleForName(getGrammarAccess().getGrammar(), "STRING"));
}
 
Example 2
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return SingleQuotedStringConverter.class;
}
 
Example 3
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return SingleQuotedStringConverter.class;
}
 
Example 4
Source Project: xtext-xtend   Source File: XtendRuntimeModule.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return StringValueConverter.class;
}
 
Example 5
Source Project: sarl   Source File: AbstractSARLRuntimeModule.java    License: Apache License 2.0 4 votes vote down vote up
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return StringValueConverter.class;
}
 
Example 6
Source Project: n4js   Source File: N4JSRuntimeModule.java    License: Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Value converter to handle Unicode characters.
 *
 * @return Class<{@link N4JSStringValueConverter}>
 */
@Inject
public Class<? extends STRINGValueConverter> bindN4JSStringValueConverter() {
	return N4JSStringValueConverter.class;
}