     @silent    = no
     @workspace = new IDEWorkspace { layoutOptions }
     @ideViews  = []
-
-    # todo:
-    # - following two should be abstracted out into a separate api
-    @layout = ndpane(16)
-    @layoutMap = new Array(16*16)
+    @layout    = ndpane 16
+    @layoutMap = new Array 16 * 16
 
     { windowController, appManager } = kd.singletons
     windowController.addFocusListener @bound 'handleWindowFocus'


      @runOnboarding()  if @isMachineRunning()

      if app.getId() is @getId() and not @layoutManager.isSnapshotRestored()
        @layoutManager.restoreSnapshot()

      @bindListeners()  unless @listenersBound


  bindListeners: ->

    @listenersBound = yes

    @on 'CloseFullScreen', =>
      [ideView] = @ideViews.filter (ideView) -> ideView.isFullScreen

    @layoutManager = new IDELayoutManager delegate : this

    @workspace.once 'ready', => @getView().addSubView @workspace.getView()
    @bindListeners()

    appManager.on 'AppIsBeingShown', (app) =>

