微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

org.eclipse.xtext.validation.IDiagnosticConverter的实例源码

项目:statecharts    文件SCTXtextIntegrationModule.java   
@Override
public void configure(Binder binder) {
    binder.bind(IResourceValidator.class).to(SCTResourceValidatorImpl.class);
    binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("sct");
    binder.bind(IEncodingProvider.class).to(IEncodingProvider.Runtime.class);
    binder.bind(IQualifiednameProvider.class).to(StextNameProvider.class);
    binder.bind(org.eclipse.jface.viewers.ILabelProvider.class)
            .annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class)
            .to(DefaultDescriptionLabelProvider.class);
    binder.bind(IDefaultResourceDescriptionStrategy.class).to(SCTResourceDescriptionStrategy.class);

    binder.bind(MarkerCreator.class).to(SCTMarkerCreator.class);
    binder.bind(MarkerTypeProvider.class).to(SCTMarkerTypeProvider.class);
    binder.bind(IDiagnosticConverter.class).to(SCTDiagnosticConverterImpl.class);
    binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(SCTFileEditorOpener.class);

    binder.bind(IMarkerContributor.class).to(TaskMarkerContributor.class);
    binder.bind(ITaskFinder.class).to(DomainSpecificTaskFinder.class);
    binder.bind(TaskMarkerCreator.class).to(SCTTaskMarkerCreator.class);
    binder.bind(TaskMarkerTypeProvider.class).to(SCTTaskMarkerTypeProvider.class);
}
项目:n4js    文件N4JSInjectorProviderWithIssueSuppression.java   
/** */
@Override
public Class<? extends IDiagnosticConverter> bindDiagnosticConverter() {
    return FilteringDiagnosticConverter.class;
}
项目:n4js    文件N4JsstandaloneTestsModule.java   
/** */
public Class<? extends IDiagnosticConverter> bindDiagnosticConverter() {
    return ExceptionAwareDiagnosticConverter.class;
}
项目:xtext-core    文件XtextRuntimeModule.java   
public Class<? extends IDiagnosticConverter> bindIDiagnosticConverter() {
    return XtextDiagnosticConverter.class;
}
项目:statecharts    文件GenericEditorModule.java   
public Class<? extends IDiagnosticConverter> bindIDiagnosticConverter() {
    return SCTDiagnosticConverterImpl.class;
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。