Bug 136256 Enhance the message builder
Please see the spec attached in 133995 for detail.
UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/internal/ui/ide/adapters/LibraryProvider.java
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
/**
 * Implement of ILibraryProvider Return libraries defined in preference and
 * libraries in the same project with the report file.
 */
public class LibraryProvider implements ILibraryProvider
{
	private static final String MSG_OPEN_DEFINED_LIBRARY_ERROR_TITLE = Messages.getString( "LibraryProvider.openDefinedLibrary.error.dialog.title" ); 
	private static final String MSG_OPEN_DEFINED_LIBRARY_ERROR_MSG = Messages.getString( "LibraryProvider.openDefinedLibrary.error.dialog.message" ); 
	private List projectLibrarys;
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.views.lib.ILibraryProvider#getLibrarys()
	 */
	public LibraryHandle[] getLibraries( )
	{
		projectLibrarys = new ArrayList( );
		ArrayList libList = new ArrayList( );
		try
		{
			libList.addAll( getProjectLibraryList( ) );
		}
		catch ( CoreException e1 )
		{
		}
		libList.addAll( getPreferenceLibraries( libList ) );
		return (LibraryHandle[]) libList.toArray( new LibraryHandle[libList.size( )] );
	}