Extract command panel as an extension

This commit is contained in:
Corey Johnson
2012-05-08 13:49:06 -07:00
parent 935ae3323e
commit 77baa7be09
4 changed files with 30 additions and 18 deletions

View File

@@ -8,7 +8,6 @@ Buffer = require 'buffer'
Editor = require 'editor'
Project = require 'project'
VimMode = require 'vim-mode'
CommandPanel = require 'command-panel'
Pane = require 'pane'
PaneColumn = require 'pane-column'
PaneRow = require 'pane-row'
@@ -31,14 +30,12 @@ class RootView extends View
extensionStates: null
initialize: ({ pathToOpen }) ->
@handleEvents()
@extensions = {}
@extensionStates = {}
@commandPanel = new CommandPanel({rootView: this})
@setTitle()
@project = new Project(pathToOpen)
@handleEvents()
@setTitle()
@open(pathToOpen) if fs.isFile(pathToOpen)
serialize: ->