def __editor__patterns_replaced(self, patterns):
        """
        Defines the slot triggered by an editor when patterns have been replaced.
        """

        replacedPatternsCount = len(patterns)
        replacedPatternsCount and self.__engine.notifications_manager.notify(
            "{0} | '{1}' pattern(s) replaced!".format(self.__class__.__name__, replacedPatternsCount))
def __editor__patterns_replaced ( self , patterns ) : replacedPatternsCount = len ( patterns ) replacedPatternsCount and self . __engine . notifications_manager . notify ( "{0} | '{1}' pattern(s) replaced!" . format ( self . __class__ . __name__ , replacedPatternsCount ) )
Defines the slot triggered by an editor when patterns have been replaced.