Java 类org.eclipse.xtext.documentation.IEObjectDocumentationProvider 实例源码

项目:dsl-devkit    文件:DocumentedImplCustom.java   
/** {@inheritDoc} */
@Override
public String getDescription() {
  if (!this.eIsProxy() && this.eResource() != null) {
    IResourceServiceProvider serviceProvider = IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(this.eResource().getURI());
    if (serviceProvider != null) {
      IEObjectDocumentationProvider documentationProvider = serviceProvider.get(IEObjectDocumentationProvider.class);
      String documentation = documentationProvider.getDocumentation(this);
      if (!Strings.isEmpty(documentation)) { // NOPMD
        return documentation;
      }
    }
  }
  return null;
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 * Bind custom IEObjectDocumentationProvider.
 */
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProvider() {
    return N4JSDocumentationProvider.class;
}
项目:xtext-extras    文件:TypeUsageCollector.java   
@Inject
private void setDocumentationProvider(IEObjectDocumentationProvider documentationProvider) {
    if(documentationProvider instanceof IEObjectDocumentationProviderExtension) 
        this.documentationProvider = (IEObjectDocumentationProviderExtension) documentationProvider;
}
项目:dsl-devkit    文件:CheckRuntimeModule.java   
/**
 * @return a JavaDoc-like documentation provider
 */
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProvider() {
  return CheckEObjectDocumentationProvider.class;
}
项目:z80editor    文件:Z80UiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProvider() {
    return z80EObjectDocumentationProvider.class;
}
项目:bts    文件:EgyDslUiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProviderr() {
    return BTSEObjectDocumentationProvider.class;
}
项目:statecharts    文件:SGenTestRuntimeModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProvider() {
    return SGenUserHelpDocumentationProvider.class;
}
项目:statecharts    文件:SGenUiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProvider() {
    return SGenUserHelpDocumentationProvider.class;
}
项目:statecharts    文件:STextUiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProvider() {
    return STextUserHelpDocumentationProvider.class;
}
项目:plan    文件:PlanUiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProviderr() {
    return PlanDocumentationProvider.class;
}
项目:gama    文件:GamlUiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProviderr() {
    return GamlDocumentationProvider.class;
}
项目:yang-design-studio    文件:YangUiModule.java   
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProviderr() {
    return yangDocumentationProvider.class;
}