 
     @recentFilesWrapper = new KDView
       cssClass : 'file-container'
+
+  refreshApps: ->
+    @removeAppIcons()
+    @showLoader()
+    @appsController.refreshApps (err, apps)=>
+      @hideLoader()
+      @refreshButton.hideLoader()
 
   showLoader:->
 

      @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
      callback    : @bound "refreshApps"
      menu        :
        "Restore shortcuts":
          cssClass: ""
          callback: =>
            KD.getSingleton('kodingAppsController').putDefaultShortcutsBack()
            @refreshApps()

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