Java 类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;
}