return (LibraryHandle) selection.getFirstElement( );
File file = (File) selection.getFirstElement( ); try { return SessionHandleAdapter.getInstance( ) .getSessionHandle( ) .openLibrary( file.getAbsolutePath( ) ); } catch ( DesignFileException e ) { return null; }
	private LibraryHandle getSelectedLibrary( )	{		IStructuredSelection selection = (IStructuredSelection) viewer.getSelection( );		if ( selection != null )		{			if ( selection.getFirstElement( ) instanceof LibraryHandle )			{				return (LibraryHandle) selection.getFirstElement( );			}		}		return null;	}