org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.
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: GamlUiModule.java From gama with GNU General Public License v3.0 | 6 votes |
@SuppressWarnings ("unchecked") @Override public void configure(final Binder binder) { super.configure(binder); binder.bind(String.class).annotatedWith( com.google.inject.name.Names.named(XtextContentAssistProcessor.COMPLETION_AUTO_ACTIVATION_CHARS)) .toInstance("."); binder.bind(IContentAssistParser.class).to((Class<? extends IContentAssistParser>) GamlParser.class); binder.bind(Lexer.class).annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalGamlLexer.class); binder.bind(IResourceLoader.class).toProvider(ResourceLoaderProviders.getParallelLoader()); binder.bind(IResourceClusteringPolicy.class).to(DynamicResourceClusteringPolicy.class); binder.bind(IModelRunner.class).to(ModelRunner.class); // binder.bind(XtextDocumentProvider.class).to(XtextDocumentProvider.class); binder.bind(IMarkerUpdater.class).to(GamlMarkerUpdater.class); binder.bind(IGamlLabelProvider.class).to(GamlLabelProvider.class); }
Example #2
Source File: AbstractContentAssistParser.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override protected TokenSource createLexer(CharStream stream) { Lexer lexer = lexerProvider.get(); lexer.setCharStream(stream); return lexer; }