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

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...