1 11 package org.eclipse.core.internal.filesystem; 12 13 import java.net.URI ; 14 import org.eclipse.core.filesystem.*; 15 import org.eclipse.core.filesystem.provider.FileSystem; 16 import org.eclipse.core.runtime.IPath; 17 import org.eclipse.core.runtime.Path; 18 19 23 public class NullFileSystem extends FileSystem { 24 25 28 private static IFileSystem instance; 29 30 35 public static IFileSystem getInstance() { 36 return instance; 37 } 38 39 42 public NullFileSystem() { 43 super(); 44 instance = this; 45 } 46 47 public IFileStore getStore(IPath path) { 48 return new NullFileStore(path); 49 } 50 51 public IFileStore getStore(URI uri) { 52 return new NullFileStore(new Path(uri.getPath())); 53 } 54 55 } 56 | Popular Tags |