def __init__(self, builder, user_branches=None, user_remotes=None):
     if isinstance(builder, ahk.ScriptBuilder):
         self.scriptBuilder = builder
     else:
         ahk.error("Can't create CustomAutoComplete instance! ScriptBuilder is null!")
     self.user_branches = user_branches
     self.user_remotes = user_remotes
 def getApp(key):
     key = key.replace('[', '').replace(']', '')
     if key.startswith("ahk_"):
         return key
     elif key.upper() in application:
         return 'ahk_class ' + application[key.upper()]
     else:
         ahk.error("Application alias '%s' is not defined in file: \n%s"
             "\nAdd it to file or use 'ahk_class AppClassName' syntax" % (key, ahk_classes_file_loaded))
 def getApp(key):
     key = key.replace('[', '').replace(']', '')
     if key.startswith("ahk_"):
         return key
     elif key.upper() in application:
         return 'ahk_class ' + application[key.upper()]
     else:
         ahk.error(
             "Application alias '%s' is not defined in file: \n%s"
             "\nAdd it to file or use 'ahk_class AppClassName' syntax" %
             (key, ahk_classes_file_loaded))
 def checkName(text):
     if "," in text:
         ahk.error("NamingError: ',' symbol can't be used as name! Invalid name is: %s" % text)
 def notEmpty(text, caused_by):
     if not text:
         ahk.error("[%s] got empty text argument" % caused_by)
 def __init__(self, builder):
     if isinstance(builder, ahk.ScriptBuilder):
         self.scriptBuilder = builder
     else:
         ahk.error("Can't create Menu instance! ScriptBuilder is null!")
 def checkName(text):
     if "," in text:
         ahk.error(
             "NamingError: ',' symbol can't be used as name! Invalid name is: %s"
             % text)
 def notEmpty(text, caused_by):
     if not text:
         ahk.error("[%s] got empty text argument" % caused_by)