Ejemplo n.º 1
0
    def completeSet(self, text, line, begidx, endidx):
        arguments = splitArguments(line)

        if len(arguments) > 2 or len(arguments) == 2 and not text:
            return []

        active_module = self.ert().analysisConfig().getActiveModule()
        variables = active_module.getVariableNames()
        return autoCompleteListWithSeparator(text, variables)
Ejemplo n.º 2
0
    def completeFunction(self, text, line, begidx, endidx):
        if self.__completer is not None:
            if callable(self.__completer):
                model = self.getModelForFunction()
                return self.__completer(model, text, line, begidx, endidx)
            else:
                key = extractFullArgument(line, endidx)
                return autoCompleteListWithSeparator(key, self.__completer)

        return []
Ejemplo n.º 3
0
 def complete_function(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key,
                                          self.fetchSupportedKeys())
Ejemplo n.º 4
0
 def completeAnalysisModule(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key, self.getAnalysisModules())
Ejemplo n.º 5
0
 def complete_function(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key, self.fetchSupportedKeys())