Examples of VFSPath


Examples of com.adito.vfs.VFSPath

    /**
     * @return String the path to the home of the network place.
     */
    public String getHome() {
        VFSPath tmp = (VFSPath) this.paths.get(0);
        this.paths.clear();
        this.paths.add(0, tmp);
        return tmp.getPath();
    }
View Full Code Here

Examples of com.adito.vfs.VFSPath

    /**
     * @param String home sets the path to the home for this network place.
     */
    public void setHome(String home) {
        this.paths.add(new VFSPath(0, home));
    }
View Full Code Here

Examples of com.adito.vfs.VFSPath

    /**
     * @param path The path to add or go to.
     */
    public void addPath(String path) {
        VFSPath newPath = new VFSPath(this.paths.size(), path);
        VFSPath oldPath = null;
        boolean add = true;
        List newPaths = new ArrayList();
        Iterator iter = this.paths.iterator();
        while (iter.hasNext()) {
            VFSPath element = (VFSPath) iter.next();
            if (element.getPath().equals(newPath.getPath())) {
                add = false;
                newPaths.add(element);
                break;
            } else {
                newPaths.add(element);
View Full Code Here

Examples of com.adito.vfs.VFSPath

    public void clearPathsTo(String _id) {
        int id = Integer.parseInt(_id);
        Iterator iter = this.paths.iterator();
        List newPaths = new ArrayList();
        while (iter.hasNext()) {
            VFSPath element = (VFSPath) iter.next();
            if (element.getPosition() <= id)
                newPaths.add(element);
        }
        this.paths = newPaths;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.