Ejemplo n.º 1
0
  public IVResource[] getParents() {
    Vector parents = new Vector();

    IVResource parent = this.getParent();
    while (parent != null) {
      parents.add(0, parent);
      parent = parent.getParent();
    }
    if (this.isDirectory()) parents.add(this);
    return (IVResource[]) parents.toArray(new IVResource[parents.size()]);
  }
Ejemplo n.º 2
0
 @Override
 public IVResource getParent() {
   return original.getParent();
 }