Beispiel #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())
Beispiel #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())
Beispiel #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())
Beispiel #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())
Beispiel #5
0
 def completeRun(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
Beispiel #6
0
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
Beispiel #7
0
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
Beispiel #8
0
 def completeSelect(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getAllCaseList())
Beispiel #9
0
 def completeFilesystem(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getFileSystemNames())
Beispiel #10
0
 def completeRun(self, text, line, begidx, endidx):
     return autoCompleteList(text, self.getWorkflowNames())
Beispiel #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())
Beispiel #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())