     switch type
       when 'code','text','unknown'
         log "open with a text editor"
-        @open @defaultApps.text, (appController)->
-          appController.openFile file
+        @open @defaultApps.text, (appController)-> appController.openFile file
       when 'image'
         log "open with an image processing app"
       when 'video'


  createPromptModal:(appOptions, callback)->
    # show modal and wait for response
    callback appInstance

  setListeners:(appInstance)->


      defaultCallback      = -> createOrShow appOptions, callback
      kodingAppsController = @getSingleton("kodingAppsController")

      {multiple, openWith} = appOptions

      unless options.thirdParty
        # if there is no registered appController
        # we assume it should be a 3rd party app
