コード例 #1
0
    def completeFIELD(self, text, line, begidx, endidx):
        arguments = splitArguments(line)

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

        return autoCompleteList(text, self.supportedFIELDKeys())
コード例 #2
0
ファイル: export.py プロジェクト: agchitu/ert
    def completeFIELD(self, text, line, begidx, endidx):
        arguments = splitArguments(line)

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

        return autoCompleteList(text, self.supportedFIELDKeys())
コード例 #3
0
ファイル: shell_collection.py プロジェクト: Ensembles/ert
    def completeKeywords(self, text, line, begidx, endidx):
        arguments = shlex.split(line)
        assert arguments[0] == self.name

        line = line[len(self.name) + 1:]
        begidx = begidx - len(self.name) + 1
        endidx = endidx - len(self.name) + 1
        keyword, sep, arguments = line.partition(' ')

        if begidx >= len(keyword) and keyword in self.findKeywords():
            if hasattr(self, "complete_%s" % keyword):
                func = getattr(self, "complete_%s" % keyword)
                return func(text, line, begidx, endidx)
            else:
                return []
        else:
            return autoCompleteList(text, self.findKeywords())
コード例 #4
0
    def completeKeywords(self, text, line, begidx, endidx):
        arguments = shlex.split(line)
        assert arguments[0] == self.name

        line = line[len(self.name) + 1:]
        begidx = begidx - len(self.name) + 1
        endidx = endidx - len(self.name) + 1
        keyword, sep, arguments = line.partition(' ')

        if begidx >= len(keyword) and keyword in self.findKeywords():
            if hasattr(self, "complete_%s" % keyword):
                func = getattr(self, "complete_%s" % keyword)
                return func(text, line, begidx, endidx)
            else:
                return []
        else:
            return autoCompleteList(text, self.findKeywords())
コード例 #5
0
 def completeRun(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
コード例 #6
0
ファイル: plot_settings.py プロジェクト: jonerduarte/ert
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
コード例 #7
0
ファイル: cases.py プロジェクト: bramirex/ert
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
コード例 #8
0
ファイル: plot_settings.py プロジェクト: stefoss23/ert
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
コード例 #9
0
ファイル: cases.py プロジェクト: berland/ert
 def completeFilesystem(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
コード例 #10
0
ファイル: workflows.py プロジェクト: Ensembles/ert
 def completeRun(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
コード例 #11
0
ファイル: plugins.py プロジェクト: Ensembles/ert
    def completeRun(self, text, line, begidx, endidx):
        arguments = splitArguments(line)

        if len(arguments) > 2 or len(arguments) == 2 and not text:
            return []
        return autoCompleteList(text, self.getPluginNames())
コード例 #12
0
ファイル: plugins.py プロジェクト: blattms/ert-debian
    def completeRun(self, text, line, begidx, endidx):
        arguments = splitArguments(line)

        if len(arguments) > 2 or len(arguments) == 2 and not text:
            return []
        return autoCompleteList(text, self.getPluginNames())