public String getDisplayPath(File file) { String fullPath = file.getAbsolutePath().replace(File.separatorChar, '/'); if (fullPath.equals(myAnchorPath1)) { return ""; } else if (fullPath.startsWith(myAnchorPath1 + "/")) { fullPath = fullPath.substring(myAnchorPath1.length() + 1);
protected String getDisplayPath(String path) { if (myBasePath == null) { return path;
    public String getDisplayPath(File file) {        String fullPath = file.getAbsolutePath().replace(File.separatorChar, '/');        if (fullPath.equals(myAnchorPath1)) {            return "";        } else if (fullPath.startsWith(myAnchorPath1 + "/")) {            fullPath = fullPath.substring(myAnchorPath1.length() + 1);        }        return fullPath;    }