def dispose ( self ):
        self.context_object.on_trait_change( self.update_editor_item,
                                self.name + '_items?', remove = True )
        self.close_all()

        super( NotebookEditor, self ).dispose()

    #---------------------------------------------------------------------------
    #  Adds a group of new DockControls to the view:
    #---------------------------------------------------------------------------
Disposes of the contents of an editor.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/list_editor.py/NotebookEditor.dispose