Package advene :: Package gui :: Package util :: Module completer :: Class Indexer
[hide private]
[frames] | no frames]

Class Indexer

source code

Indexer for Advene elements contents.

Instance Methods [hide private]
 
__init__(self, controller=None, package=None) source code
 
get_words(self, s)
Return the list of indexable words from the given string.
source code
 
initialize(self)
Initialize the indexer on package load.
source code
 
element_update(self, element)
Update the collection on element modification.
source code
 
get_completions(self, prefix, context=None)
Return the list of possible completions.
source code
Method Details [hide private]

get_completions(self, prefix, context=None)

source code 

Return the list of possible completions.

element is used as contextual information to refine the search. If it is an Annotation, completions will be searched in the annotation of the same type. If it is a view, completions will be searched for in other views.

If element is a gtk.TextBuffer, completions will be searched in its content.