Exemplo n.º 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())
Exemplo n.º 2
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())
Exemplo n.º 3
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())
Exemplo n.º 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())
Exemplo n.º 5
0
 def completeRun(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
Exemplo n.º 6
0
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
Exemplo n.º 7
0
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
Exemplo n.º 8
0
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
Exemplo n.º 9
0
Arquivo: cases.py Projeto: berland/ert
 def completeFilesystem(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
Exemplo n.º 10
0
 def completeRun(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
Exemplo n.º 11
0
    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())
Exemplo n.º 12
0
    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())