def close_all ( self ):
        page_name = self.factory.page_name[1:]

        for _, ui, view_object, monitoring in self._uis:
            if monitoring:
                view_object.on_trait_change(self.update_page_name, page_name,
                        remove=True)
            ui.dispose()

        # Reset the list of ui's and dictionary of page name counts:
        self._uis = []
        self._pages = {}

        self.control.clear()

    #---------------------------------------------------------------------------
    #  Disposes of the contents of an editor:
    #---------------------------------------------------------------------------
Test Flatten.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/list_editor.py/NotebookEditor.close_all--crossover with--dataset/ETHPy150Open spranesh/Redhawk/redhawk/test/test_utils_util.py/TestFlatten