Esempio 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)
Esempio 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 []
Esempio n. 3
0
 def complete_function(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key,
                                          self.fetchSupportedKeys())
Esempio n. 4
0
 def completeAnalysisModule(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key, self.getAnalysisModules())
Esempio n. 5
0
 def complete_function(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key, self.fetchSupportedKeys())