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
*/
	private static boolean isLastDirectoryMatched( String baseDir,
			String resourceDir, int matchedPos )
	{
		if ( matchedPos == baseDir.length( )
				&& ( ( matchedPos < resourceDir.length( ) && resourceDir
						.charAt( matchedPos ) == File.separatorChar ) || matchedPos == resourceDir
						.length( ) ) )
			return true;
		return false;
	}
	/**
	 * Tests whether the input string is a valid resource directory.
	 * 
	 * @param resourceDir
	 *            the resource directory
	 * @return <code>true</code> if the input string is a valid resource
	 *         directory, <code>false</code> otherwise.
	 */
	public static boolean isValidResourcePath( String resourceDir )
	{
		if ( resourceDir == null )
			return false;
		File f = new File( resourceDir );
		if ( f.isAbsolute( ) && f.exists( ) && f.isDirectory( ) )
			return true;
		return false;
	}
}