         if @scanTextID
             window.clearTimeout @scanTextID
             delete @scanTextID
-        @scanTextID = window.setTimeout @scanTextCallback.bind(@), 1500
+        @scanTextID = window.setTimeout @scanTextCallback.bind(@), 750
         return true
 
     scanTextCallback: ->

        ###
        return

    buildNeededRegex: ->
        for command of @commands
            numberOfInputs = @commands[command]['inputs']
            innerRegex = ""
            for i in [1..numberOfInputs] by 1
                innerRegex += ".+"
                if i != numberOfInputs
                    innerRegex += ","

            re = "^#{command}\\((#{innerRegex})\\)(?:,|.|$)"
            @commands[command]['regex'] = RegExp re
        return

    setUpInsertButtons: ->
        ###

        @editor.setTheme "ace/theme/chrome"
        @editSession.setMode "ace/mode/java"

        @buildNeededParsers()
        @resetState()
        @editor.focus()

