当前位置: 首页>>代码示例>>Java>>正文


Java AbstractMultiLineCommentProvider类代码示例

本文整理汇总了Java中org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider的典型用法代码示例。如果您正苦于以下问题:Java AbstractMultiLineCommentProvider类的具体用法?Java AbstractMultiLineCommentProvider怎么用?Java AbstractMultiLineCommentProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractMultiLineCommentProvider类属于org.eclipse.xtext.documentation.impl包,在下文中一共展示了AbstractMultiLineCommentProvider类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider; //导入依赖的package包/类
@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("/\\*\\*[^*]");
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:18,代码来源:N4JSRuntimeModule.java

示例2: configure

import org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider; //导入依赖的package包/类
@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());
}
 
开发者ID:antlr4ide,项目名称:antlr4ide,代码行数:29,代码来源:Antlr4UiModule.java

示例3: setEndTag

import org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider; //导入依赖的package包/类
/**
 * 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"));
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:9,代码来源:DefaultTaskFinder.java


注:本文中的org.eclipse.xtext.documentation.impl.AbstractMultiLineCommentProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。