       @updateRecentFileViews()
 
     @loader = new KDLoaderView size : width : 16
-
-    refreshApps = ->
-      @removeAppIcons()
-      @showLoader()
-      @appsController.refreshApps (err, apps)=>
-        @hideLoader()
-        @refreshButton.hideLoader()
 
     @refreshButton = new KDButtonViewWithMenu
       cssClass    : "editor-button refresh-apps-button"

      iconClass   : "refresh"
      loader      :
        diameter  : 16
      menu        :
        "Restore shortcuts":
          cssClass: ""
          callback: =>
            KD.getSingleton('kodingAppsController').putDefaultShortcutsBack()
            do refreshApps.bind this

      callback    : refreshApps.bind this

    @addAnAppButton = new KDButtonView
      cssClass    : "editor-button new-app-button"


    @recentFilesWrapper = new KDView
      cssClass : 'file-container'

  refreshApps: ->
    @removeAppIcons()
    @showLoader()
    @appsController.refreshApps (err, apps)=>
      @hideLoader()
      @refreshButton.hideLoader()

  showLoader:->

