Java 类org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider 实例源码

项目:n4js    文件:N4JSRuntimeModule.java   
@Override
public void configure(Binder binder) {
    super.configure(binder);
    binder.bindConstant()
            .annotatedWith(Names.named("org.eclipse.xtext.validation.CompositeEValidator.USE_EOBJECT_VALIDATOR"))
            .to(false);

    // set-up infrastructure for custom scopes
    final ScopeManager scopeManager = new ScopeManager();
    binder.bind(ScopeManager.class).toInstance(scopeManager);
    binder.bindScope(TransformationScoped.class, scopeManager);

    // setup documentation provider to match jsdoc-style exactly two stars only:
    binder.bind(String.class)
            .annotatedWith(Names.named(AbstractMultiLineCommentProvider.START_TAG))
            .toInstance("/\\*\\*[^*]");
}
项目:antlr4ide    文件:Antlr4UiModule.java   
@Override
public void configure(final Binder binder) {
  super.configure(binder);

  binder.requestStaticInjection(AntlrConsoleFactory.class);
  binder.requestStaticInjection(AntlrHighlightingConfiguration.class);
  binder.bind(GrammarResource.class).to(DefaultGrammarResource.class);

  binder.bind(ToolOptionsProvider.class).to(DefaultToolOptionsProvider.class);

  binder.bind(Antlr4FoldingPreferenceStoreInitializer.class);
  binder.bind(BuildPreferenceStoreInitializer.class);
  binder.bind(IFoldingStructureProvider.class).to(Antlr4FoldingStructureProvider.class);
  binder.bind(IFoldingRegionProvider.class).to(Antlr4FoldingRegionProvider.class);

  binder.bind(String.class)
      .annotatedWith(Names.named(AbstractMultiLineCommentProvider.START_TAG))
      .toInstance("/\\*\\*");

  binder.bind(IActionContributor.class).annotatedWith(Names.named("Show Whitespace"))
      .to(ShowWhitespaceCharactersActionContributor.class);

  binder.bind(TodoListProcessor.class);
  binder.bind(RefreshProjectProcessor.class);

  binder.bind(IPath.class).annotatedWith(Names.named("stateLocation")).toInstance(stateLocation);
  ConsoleImpl.getLogger().addAppender(new DefaultConsole());
}
项目:xtext-core    文件:DefaultTaskFinder.java   
/**
 * this method is not intended to be called by clients
 * @since 2.12
 */
@Inject(optional = true)
protected Pattern setEndTag(@Named(AbstractMultiLineCommentProvider.END_TAG) final String endTag) {
  return this.endTagPattern = Pattern.compile((endTag + "\\z"));
}