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
file = (IFile) ( (TreeSelection) selection ).getFirstElement( );
			}
			if ( file != null )
			{
				if ( file.getFileExtension( ).equals( "rptlibrary" ) )
				{
					libFile = file;
					selectLibrary = true;
					action.setEnabled( true );
					return;
				}				
			}
		}
		action.setEnabled( isEnable( ) ); 
	}
	private boolean isEnable( )
	{
		return editLibrary( );
	}
	private boolean editLibrary( )
	{
		IEditorPart editor = UIUtil.getActiveEditor( true );
		if ( editor != null )
		{
			return ( editor.getEditorInput( ).getName( ).endsWith( ".rptlibrary" ) ); 
		}
		return false;
	}
}