コード例 #1
0
ファイル: analysis_module.py プロジェクト: blattms/ert-debian
    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)
コード例 #2
0
ファイル: shell_function.py プロジェクト: blattms/ert-debian
    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 []
コード例 #3
0
ファイル: shell_plot.py プロジェクト: bramirex/ert
 def complete_function(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key,
                                          self.fetchSupportedKeys())
コード例 #4
0
ファイル: analysis_module.py プロジェクト: blattms/ert-debian
 def completeAnalysisModule(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key, self.getAnalysisModules())
コード例 #5
0
ファイル: shell_plot.py プロジェクト: Ensembles/ert
 def complete_function(self, text, line, begidx, endidx):
     key = extractFullArgument(line, endidx)
     return autoCompleteListWithSeparator(key, self.fetchSupportedKeys())