def __init__(self, plugin, window): self.load_settings() self._window = window self._plugin = plugin self._active = False self._insert_menu() self._highlighted_pairs = {} #pairs of highlighted iters self._tag_list = {} #all applied tags by document self._tag_lib = {} #all tags to be assigned self._xml_highlighter = XmlHighlighter(self._window, self) self._xsl_processor = XslProcessor(self._window, self) self._counter = SearchResultCounter(self._window) self._meld_launcher = MeldLauncher(self._window)