Java 类org.eclipse.xtext.resource.persistence.IResourceStorageFacade 实例源码

项目:xtext-extras    文件:StandaloneBuilder.java   
protected void generate(final List<Resource> sourceResources) {
  final GeneratorContext context = new GeneratorContext();
  context.setCancelIndicator(CancelIndicator.NullImpl);
  for (final Resource it : sourceResources) {
    {
      String _lastSegment = it.getURI().lastSegment();
      String _plus = ("Starting generator for input: \'" + _lastSegment);
      String _plus_1 = (_plus + "\'");
      StandaloneBuilder.LOG.info(_plus_1);
      this.registerCurrentSource(it.getURI());
      final LanguageAccess access = this.languageAccess(it.getURI());
      final JavaIoFileSystemAccess fileSystemAccess = this.getFileSystemAccess(access);
      boolean _isWriteStorageResources = this.isWriteStorageResources();
      if (_isWriteStorageResources) {
        boolean _matched = false;
        if (it instanceof StorageAwareResource) {
          IResourceStorageFacade _resourceStorageFacade = ((StorageAwareResource)it).getResourceStorageFacade();
          boolean _tripleNotEquals = (_resourceStorageFacade != null);
          if (_tripleNotEquals) {
            _matched=true;
            ((StorageAwareResource)it).getResourceStorageFacade().saveResource(((StorageAwareResource)it), fileSystemAccess);
          }
        }
      }
      access.getGenerator().generate(it, fileSystemAccess, context);
    }
  }
}
项目:xtext-extras    文件:BuilderTestLanguageRuntimeModule.java   
public Class<? extends IResourceStorageFacade> bindIResourceStorageFacade() {
    return ResourceStorageFacade.class;
}
项目:xtext-extras    文件:ResourceStorageTest.java   
public Class<? extends IResourceStorageFacade> bindIResourceStorageFacade() {
  return BatchLinkableResourceStorageFacade.class;
}
项目:xtext-core    文件:StorageAwareResource.java   
@Pure
public IResourceStorageFacade getResourceStorageFacade() {
  return this.resourceStorageFacade;
}
项目:xtext-core    文件:LangATestLanguageRuntimeModule.java   
public Class<? extends IResourceStorageFacade> bindIResourceStorageFacade() {
    return ResourceStorageFacade.class;
}