mirror of
https://github.com/atom/atom.git
synced 2026-02-18 10:31:54 -05:00
Drop out a basic workspace model
This commit is contained in:
20
src/workspace.coffee
Normal file
20
src/workspace.coffee
Normal file
@@ -0,0 +1,20 @@
|
||||
{Model} = require 'theorist'
|
||||
Serializable = require 'serializable'
|
||||
PaneContainer = require './pane-container'
|
||||
|
||||
module.exports =
|
||||
class Workspace extends Model
|
||||
atom.deserializers.add(this)
|
||||
Serializable.includeInto(this)
|
||||
|
||||
@properties
|
||||
paneContainer: -> new PaneContainer
|
||||
fullScreen: false
|
||||
|
||||
deserializeParams: (params) ->
|
||||
params.paneContainer = PaneContainer.deserialize(params.paneContainer)
|
||||
params
|
||||
|
||||
serializeParams: ->
|
||||
paneContainer: @paneContainer.serialize()
|
||||
fullScreen: atom.isFullScreen()
|
||||
Reference in New Issue
Block a user