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()]); }
@Override public IVResource getParent() { return original.getParent(); }