 Grim = require 'grim'
 fs = require 'fs-plus'
 StackTraceParser = require 'stacktrace-parser'
+Model = require './model'
 TextEditor = require './text-editor'
 PaneContainer = require './pane-container'
 Pane = require './pane'

    deferred.promise

if includeDeprecatedAPIs
  Object.defineProperty Workspace::, 'activePaneItem',
    get: ->
      Grim.deprecate "Use ::getActivePaneItem() instead of the ::activePaneItem property"

  atom.deserializers.add(this)
  Serializable.includeInto(this)

  constructor: (params) ->
    super

    unless Grim.includeDeprecatedAPIs
      @paneContainer = params?.paneContainer
      @fullScreen = params?.fullScreen ? false
      @destroyedItemURIs = params?.destroyedItemURIs ? []

    @emitter = new Emitter
    @openers = []
