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