def add_locator(self, locator):
        if locator in self.locators:
            self.locators.remove(locator)
        self.locators.insert(0, locator)
        self.locators_map[locator.name] = locator
        
        self.ensure_no_more_than_max(self.maxlocators)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/recent_vistrails.py/RecentVistrailList.add_locator/original