 
   updateRoot: ->
     @root?.remove()
-    if rootDirectory = rootView.project.getRootDirectory()
-      @root = new DirectoryView(directory: rootDirectory, isExpanded: true, project: rootView.project)
+    if rootDirectory = project.getRootDirectory()
+      @root = new DirectoryView(directory: rootDirectory, isExpanded: true, project: project)
       @treeViewList.append(@root)
     else
       @root = null

        @attach()

  attach: ->
    return unless rootView.project.getPath()
    rootView.horizontal.prepend(this)
    @focus()



    dialog = new Dialog
      prompt: prompt
      path: project.relativize(oldPath)
      select: true
      iconClass: 'move'
      onConfirm: (newPath) =>
        newPath = project.resolve(newPath)
        directoryPath = fs.directory(newPath)
        try
          fs.makeTree(directoryPath) unless fs.exists(directoryPath)
