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

The following examples show how to use org.eclipse.xtext.parser.antlr.ISyntaxErrorMessageProvider. 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: GamlUiModule.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public Class<? extends ISyntaxErrorMessageProvider> bindISyntaxErrorMessageProvider() {
	return GamlSyntaxErrorMessageProvider.class;
}
 
Example #3
Source File: GamlRuntimeModule.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public Class<? extends ISyntaxErrorMessageProvider> bindISyntaxErrorMessageProvider() {
	return GamlSyntaxErrorMessageProvider.class;
}
 
Example #4
Source File: AbstractSARLRuntimeModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
@SingletonBinding
public Class<? extends ISyntaxErrorMessageProvider> bindISyntaxErrorMessageProvider() {
	return SARLSyntaxErrorMessageProvider.class;
}