Bug 146088 Add library context menu item not available in empty Library Explorer
Steps to reproduce: 1. Make sure there are no libraries in your resource folder. Right-click in Library Explorer. 2. If libraries exist in the resource folder, expand a library and highlight an item that is inside the library. Right-click in Library Explorer. Expected: Add Library is available in the context menu in both cases. Use Library is available in the context menu in case 2. Actual: Only Refresh is available in the context menu. It should not be necessary to select a library in order to add a library.
UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/ui/lib/explorer/LibraryExplorerContextMenuProvider.java
{
	private RefreshLibExplorerAction refreshExplorerAction;
	private AddLibraryAction addLibraryAction;
	private AddSelectedLibToCurrentReportDesignAction useLibraryAction;
	/**
	 * constructor
	 * 
	 * @param viewer
	 *            the viewer
	 * @param registry
	 *            the registry
	 */
	public LibraryExplorerContextMenuProvider( TreeViewer viewer )
	{
		super( viewer );
		refreshExplorerAction = new RefreshLibExplorerAction( viewer );
		addLibraryAction = new AddLibraryAction( viewer );
		useLibraryAction = new AddSelectedLibToCurrentReportDesignAction( viewer );
	}
	/**
	 * Builds the context menu. Single selection menu and multiple selection
	 * menu are created while selecting just single element or multiple elements