#NEWLINE# def setup_closed_files( self ) : #NEWLINE# #INDENT# self . closedFilesItem = QtGui . QTreeWidgetItem ( [ 'My Vistrails' ] ) #NEWLINE# self . addTopLevelItem ( self . closedFilesItem ) #NEWLINE# closed_entities = self . collection . workspaces [ 'Default' ] #NEWLINE# for entity in closed_entities : #NEWLINE# #INDENT# if entity . url . startswith ( 'file://' ) : #NEWLINE# #INDENT# if ( not entity . locator ( ) . is_valid ( ) ) : #NEWLINE# #INDENT# self . collection . del_from_workspace ( entity ) #NEWLINE# self . collection . delete_entity ( entity ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# item = QVistrailEntityItem ( entity ) #NEWLINE# self . closedFilesItem . addChild ( closed_entities ) #NEWLINE# item . mashupsItem . setHidden ( ( not item . mashupsItem . childCount ( ) ) ) #NEWLINE# item . paramExplorationsItem . setHidden ( ( not item . paramExplorationsItem . childCount ( ) ) )