Java Code Examples for org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport

The following examples show how to use org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: xtext-xtend   Source File: CompilationUnitImpl.java    License: Eclipse Public License 2.0 6 votes vote down vote up
public MutableFileSystemSupport getFileSystemSupport() {
  MutableFileSystemSupport _xblockexpression = null;
  {
    if ((this.decoratedFileSystemSupport == null)) {
      final FileSystemAccessQueue fileSystemAccessQueue = IterableExtensions.<FileSystemAccessQueue>head(Iterables.<FileSystemAccessQueue>filter(this.xtendFile.eResource().getResourceSet().eAdapters(), FileSystemAccessQueue.class));
      if ((fileSystemAccessQueue == null)) {
        return this.createListeningFileSystemSupport();
      }
      URI _uRI = this.xtendFile.eResource().getURI();
      ChangeListenerAddingFileSystemSupport _createListeningFileSystemSupport = this.createListeningFileSystemSupport();
      ParallelFileSystemSupport _parallelFileSystemSupport = new ParallelFileSystemSupport(_uRI, _createListeningFileSystemSupport, fileSystemAccessQueue);
      this.decoratedFileSystemSupport = _parallelFileSystemSupport;
    }
    _xblockexpression = this.decoratedFileSystemSupport;
  }
  return _xblockexpression;
}
 
Example 2
Source Project: xtext-xtend   Source File: XtendRuntimeModule.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends MutableFileSystemSupport> bindMutableFileSystemSupport() {
	return JavaIOFileSystemSupport.class;
}
 
Example 3
@Delegate
public MutableFileSystemSupport getFileSystemSupport() {
  return this.unit.getFileSystemSupport();
}
 
Example 4
public ParallelFileSystemSupport(final URI uri, final MutableFileSystemSupport delegate, final FileSystemAccessQueue queue) {
  this.uri = uri;
  this.delegate = delegate;
  this.queue = queue;
}
 
Example 5
public ChangeListenerAddingFileSystemSupport(final URI resourceURI, final MutableFileSystemSupport delegate, final IResourceChangeRegistry resourceChangeRegistry) {
  super();
  this.resourceURI = resourceURI;
  this.delegate = delegate;
  this.resourceChangeRegistry = resourceChangeRegistry;
}
 
Example 6
@Pure
public MutableFileSystemSupport getDelegate() {
  return this.delegate;
}
 
Example 7
Source Project: sarl   Source File: AbstractSARLUiModule.java    License: Apache License 2.0 4 votes vote down vote up
public Class<? extends MutableFileSystemSupport> bindMutableFileSystemSupport() {
	return EclipseFileSystemSupportImpl.class;
}
 
Example 8
Source Project: sarl   Source File: AbstractSARLRuntimeModule.java    License: Apache License 2.0 4 votes vote down vote up
public Class<? extends MutableFileSystemSupport> bindMutableFileSystemSupport() {
	return JavaIOFileSystemSupport.class;
}