org.eclipse.xtext.parser.antlr.SyntaxErrorMessageProvider Java Examples

The following examples show how to use org.eclipse.xtext.parser.antlr.SyntaxErrorMessageProvider. 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: ErrorMessagesTest.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
public void setUp() throws Exception {
	super.setUp();
	with(new SimpleUnorderedGroupsTestLanguageStandaloneSetup() {
		@Override
		public Injector createInjector() {
			return Guice.createInjector(new SimpleUnorderedGroupsTestLanguageRuntimeModule() {
				@SuppressWarnings("unused")
				public ISyntaxErrorMessageProvider bindSyntaxErrorMessageProvider() {
					return ErrorMessagesTest.this;
				}
			});
		}
	});
	delegate = get(SyntaxErrorMessageProvider.class);
	grammarAccess = get(SimpleUnorderedGroupsTestLanguageGrammarAccess.class);
}
 
Example #2
Source File: XtextRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * @since 2.9
 */
public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() {
	return CardinalityAwareSyntaxErrorMessageProvider.class;
}
 
Example #3
Source File: AbstractSARLRuntimeModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
@SingletonBinding
public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() {
	return SARLSyntaxErrorMessageProvider.class;
}
 
Example #4
Source File: N4JSRuntimeModule.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Handle octal escapes without a leading zero in JS strings.
 *
 * @return Class<{@link BadEscapementAwareMessageProvider}>
 */
@Inject
public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() {
	return BadEscapementAwareMessageProvider.class;
}