Bug 145942 [regression] use library function does not work properly
steps to reproduce: - create a library - publish to resource folder - create a report - use the library - insert -> use library, or - outline -> libraries -> use library - navigate to designer resource folder - select a library - click on open expected behavior: - library is included actual behavior: - error occurred, please refer to attached screen capture
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ImportLibraryAction.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.action.IAction#run()
	 */
	public void run( )
	{
		FileDialog dialog = new FileDialog( UIUtil.getDefaultShell( ), SWT.OPEN );
		dialog.setFilterExtensions( new String[]{
			"*.rptlibrary" 
		} );
		String filename;
		try
		{
			filename = dialog.open( );
		}
		catch ( Throwable e )
		{
			return;
		}
		if ( filename != null )
		{
			if ( !( new File( filename ).exists( ) ) )
			{
				ExceptionHandler.openErrorMessageBox( Messages.getString( "AddLibraryAction.Error.Title" ), 
						Messages.getFormattedString( "AddLibraryAction.Error.FileNotFound", new String[]{filename} ) ); 
				return;
			}
			if ( !( filename.endsWith( ".rptlibrary" ) ) )
			{