mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
26 lines
415 B
CoffeeScript
26 lines
415 B
CoffeeScript
_ = require 'underscore'
|
|
|
|
Extension = require 'extension'
|
|
TreePane = require 'tree/tree-pane'
|
|
|
|
fs = require 'fs'
|
|
|
|
module.exports =
|
|
class Tree extends Extension
|
|
project: null
|
|
|
|
constructor: ->
|
|
atom.on 'project:open', @startup
|
|
|
|
startup: (@project) =>
|
|
@pane = new TreePane this
|
|
@pane.show()
|
|
super
|
|
|
|
shutdown: ->
|
|
@pane.remove()
|
|
super
|
|
|
|
urls: (root=@project.url) ->
|
|
@project.urls root
|