예제 #1
0
  static synchronized GroupItem getRoot(URI uri)
      throws URISyntaxException, ZipException, IOException, CoreException {
    URI type = new URI(uri.getScheme(), uri.getHost(), null, null);

    GroupItem item = TypeSpaceFileSystem.getItem(type);

    return item;
  }
예제 #2
0
  public IFileStore getChild(String name) {

    if (isDirectory()) {
      GroupItem child = ((GroupPkgDirectoryItem) groupItem).getItem(name);
      if (child == null) {
        VjetPlugin.error("no child for " + name + ", uri:" + getUri());

        //				throw new RuntimeException("no child for " + name + ", uri:" + getUri() + "
        // groupItemName:" +this.groupItem.getName());
        return null;
      }

      TypeSpaceFileStore store = new TypeSpaceFileStore(name, this, child);
      URI childURI = store.getUri();
      TypeSpaceFileSystem.cache(childURI, store);
      return store;
    } else {
      return null;
    }
  }