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