#NEWLINE# def _simple_links( self ) : #NEWLINE# #INDENT# 'Return identity links which connect the highlighted items\n        in each component selector.\n\n        Returns:\n          A list of :class:`~glue.core.ComponentLink` objects\n          If items are not selected in the component selectors,\n          an empty list is returned\n        ' #NEWLINE# comps = self . _selected_components ( ) #NEWLINE# if ( len ( comps ) != 2 ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# assert isinstance ( comps [ 0 ] , core . data . ComponentID ) , comps [ 0 ] #NEWLINE# assert isinstance ( comps [ 1 ] , core . data . ComponentID ) , comps [ 1 ] #NEWLINE# link1 = core . component_link . ComponentLink ( [ comps [ 0 ] ] , comps [ 1 ] ) #NEWLINE# return [ link1 ]