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

The following examples show how to use org.eclipse.xtext.conversion.impl.STRINGValueConverter. 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: STRINGConverterTest.java    From xtext-core with 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
Source File: CodetemplatesRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return SingleQuotedStringConverter.class;
}
 
Example #3
Source File: SingleCodetemplateRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return SingleQuotedStringConverter.class;
}
 
Example #4
Source File: XtendRuntimeModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return StringValueConverter.class;
}
 
Example #5
Source File: AbstractSARLRuntimeModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
	return StringValueConverter.class;
}
 
Example #6
Source File: N4JSRuntimeModule.java    From n4js with 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;
}