Пример #1
0
 public IFileStore getStore(URI uri) {
   try {
     //			System.out.println("looking for store:" + uri);
     if (tstypeURICache.containsKey(uri)) {
       return (TypeSpaceFileStore) tstypeURICache.get(uri);
     } else {
       //				System.out.println("creating store:" + uri);
       if (canInitialize(uri.getHost())) {
         TypeSpaceFileStore store = new TypeSpaceFileStore("root", null, uri);
         tstypeURICache.put(uri, store);
         return store;
       }
     }
   } catch (Exception e) {
     Activator.getDefault()
         .getLog()
         .log(
             (IStatus)
                 new Status(
                     Status.ERROR,
                     Activator.PLUGIN_ID,
                     "could not create store for " + uri.toString(),
                     e));
   }
   return EFS.getNullFileSystem().getStore(uri);
 }