def __OnIgnoreFile(self, event): 
     """ Handler for ignoring the selected file """
     
     # get the link, and set the ignore flag. Then we refresh the 
     # links by issuing a signal through the view manager
     idx = self._links.GetFirstSelected()
     if idx != -1:
         link_id = self._links.GetItemData(idx)
         link = linkmgt.Get().links.find_id(link_id)
         if link:
             link._ignored = True
             # write XML file back
             linkmgt.Get().Save()                            
             viewmgr.signalRefreshLinks()
 def __OnRefresh(self, event): 
     """ Refresh button is pressed, check if the directory is valid
         and if so, repopulate the links """
     if self.__SyncWorkDirState():
         viewmgr.signalRefreshLinks()