本文整理汇总了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("/\\*\\*[^*]");
}
示例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());
}
示例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"));
}