     appManager = KD.getSingleton 'appManager'
 
     unless paneType
-      subView  = @tabView.getActivePane().getSubViews().first
+      subView  = @getActivePaneView()
       paneType = subView.getOptions().paneType  if subView
 
     unless data

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

  showShortcutsOnce: ->

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

  getActivePaneView: ->
    return @tabView.getActivePane().view

  focusTab: ->
    pane = @getActivePaneView()
    return unless pane

    KD.utils.defer ->
