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
* @param filePath
	 *            the file name
	 * @return a valid URL
	 */
	public static URL getDirectory( String filePath )
	{
		URL url = null;
		try
		{
			url = new URL( convertFileNameToURLString( filePath ) );
		}
		catch ( MalformedURLException e )
		{
		}
		
		if ( url == null )
			return getFileDirectory( filePath );
		if ( FILE_SCHEMA.equalsIgnoreCase( url.getProtocol( ) ) )
			return getFileDirectory( url.getPath( ) );
		
		return getNetDirectory( url );
	}
	/**
	 * Returns the directory of a file path that is a url with network
	 * protocols. Note that <code>filePath</code> should include the file name
	 * and file extension.
	 * 
	 * @param filePath
	 *            the file url
	 * @return a url for the directory of the file