@Override public void setUp() throws Exception { super.setUp(); with(XtextStandaloneSetup.class); valueConverter = get(STRINGValueConverter.class); valueConverter.setRule(GrammarUtil.findRuleForName(getGrammarAccess().getGrammar(), "STRING")); }
/** * Value converter to handle Unicode characters. * * @return Class<{@link N4JSStringValueConverter}> */ @Inject public Class<? extends STRINGValueConverter> bindN4JSStringValueConverter() { return N4JSStringValueConverter.class; }