+{Emitter} = require 'atom'
 _ = require 'underscore-plus'
 Settings = require './settings'
 DB = require './db'

      else
        @db.add props, (id) =>
          @props._id = id
      return true
    else
      return false

  open: ->
    atom.open options =
      pathsToOpen: @props.paths
      devMode: @props.devMode

  onUpdate: (callback) ->
    @emitter.on 'updated', () ->
      callback()