     span = $(e).find("span").first()
     path = $(span).attr("data-path")
     if !isAllowed(path)
-        $(e).remove()
+        #$(e).remove()
+        $(e).hide()
         #$(e).replaceWith($('<h5>' + e.innerHTML + '</h5>'));
         #$(e).addClass("mylyn-hidden")
 
         #$(e).addClass("status-ignored")
         #$(e).removeClass("entry")
+    else
+        $(e).show()
     #else
 
     #    $(e).removeClass("mylyn-hidden")

    @mylyn.filterOn = !@mylyn.filterOn
    if @mylyn.filterOn
      @mylyn.enabled = true
    @reloadTreeView()


module.exports =

          #@out("entr")(entry.entries)
          #entry.entries.forEach @listenForEvents
  rebuild:()=>
    @isRebuilding = true
    @hideDirs()
    @hideFiles()
    # if @mylyn.filterOn
    #   @view.treeView.roots.forEach (root)=>
    #       if root.expand
    #           console.log "EXPAND"
    #           #root.expand(true)
    @view.treeView.roots.forEach (root)=>@listenForEvents root.directory
    rootDir = @view.treeView.roots[0].directory
    @isRebuilding = false
  getDomFiles: =>$(".tree-view [is='tree-view-file']")


