 
   updateInstalledCount: ->
     @installedCount.text(@installedViews.children().length)
+
+  setLoadingText: (text) ->
+    @loadingArea.text(text)
+    if text then @loadingArea.show() else @loadingArea.hide()
 
   removePackage: ({name}) ->
     @installedViews.children("[name=#{name}]").remove()

      @updateInstalledCount()

  createInstalledViews: ->
    @loadingArea.show()
    packages = _.sortBy(atom.getAvailablePackageMetadata(), 'name')
    packageManager.renderMarkdownInMetadata packages, =>
      @loadingArea.hide()
      for pack in packages
        view = new PackageView(pack, @packageEventEmitter)
        @installedViews.append(view)

            @span class: 'badge pull-right', outlet: 'availableCount'

      @subview 'packageFilter', new Editor(mini: true, attributes: {id: 'package-filter'})
      @div outlet: 'loadingArea', class: 'alert alert-info loading-area'
      @div outlet: 'installedViews'


