def close_dock_control ( self, dock_control, abort ):
        if abort:
            return super( DockableListElement, self ).close_dock_control(
                                                           dock_control, False )

        view_object = self.ui.context[ 'object' ]
        for i, value in enumerate( self.editor._uis ):
            if view_object is value[2]:
                del self.editor.value[ i ]

        return False

    #---------------------------------------------------------------------------
    #  Handles a notebook tab being activated or deactivated.
    #---------------------------------------------------------------------------
Closes a DockControl.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/list_editor.py/DockableListElement.close_dock_control