Bug 155784 Can not use library in outline
Details: Can not use library in outline Step: 1.New a library named Lib. 2.New a report design. 3.Switch to outline tab, right click on libraries and select use library, select Lib. Actual result: The library can not be used.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/PublishLibraryAction.java
fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 );
			libHandle = (LibraryHandle) SessionHandleAdapter.getInstance( )
					.getReportDesignHandle( );
		}
		else if ( libFile != null
				&& libFile.getFileExtension( ).equals( "rptlibrary" ) )
		{
			String url = libFile.getLocation( ).toOSString( );
			ModuleHandle handle = null;
			try
			{
				handle = SessionHandleAdapter.getInstance( )
						.getSessionHandle( )
						.openLibrary( url );
				if ( !( handle instanceof LibraryHandle ) )
				{
					action.setEnabled( false );
					return;
				}
				String filePath = handle.getFileName( );
				if ( filePath != null && filePath.length( ) != 0 )
				{
					fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 );
				}
				libHandle = (LibraryHandle) handle;
			}
			catch ( Exception e )
			{
				ExceptionHandler.handle( e );
				return;