Bug 146526 table of contents and bookmarks in target document cannot be selected if report and target document are stored at different disk
steps to reproduce: - create a document at disk D, and move it to disk C - create a report at disk D, and edit a drill through hyperlink - select table of contents and bookmarks in the document expected behavior: - table of contents and bookmarks can be selected actual behavior: - it simply didn't
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
}
		
		if ( samePrefixPos < resourceDir.length( ) )
		{
			String remainPath = resourceDir.substring( samePrefixPos + 1 );
			remainPath = remainPath.replace( '\\', '/' );
			sb.append( remainPath );
		}
		
		int len = sb.length( );
		if ( len > 0 )
		{
			char lastChar = sb.charAt( len - 1 );
			if ( lastChar == '/' )
				sb.deleteCharAt( len - 1 );
		}
		return sb.toString( );
	}
	/**
	 * Return the relative path for the given <code>resource</code> according
	 * to <code>base</code>. Only handle file system. Network protocols such
	 * as http, ftp, etc. are not supported.
	 * <p>
	 * The <code>base</code> value should be directory ONLY and does NOT
	 * contain file name and the format can be:
	 * <ul>
	 * <li>./../hello/
	 * <li>C:\\hello\..\
	 * <li>/C:/../hello/
	 * </ul>