 
     pane = new KDTabPaneView paneOptions, paneData
     pane.addSubView view
+    pane.view = view
     @tabView.addPane pane
 
     pane.once 'KDObjectWillBeDestroyed', => @handlePaneRemoved pane

  removeOpenDocument: ->
    # TODO: This method is legacy, should be reimplemented in ace bundle.

  focusTab: ->
    pane = @tabView.getActivePane().getSubViews().first
    return unless pane

    KD.utils.defer ->

  closeUntitledFileIfNotChanged: ->
    for pane in @tabView.panes when pane
      if pane.data instanceof FSFile and pane.data.path is @getDummyFilePath()
        if pane.view.getValue() is ''
          @tabView.removePane pane

  showShortcutsOnce: ->
