       @statusBar.showInformation()  if ideViewLength is 0
 
   forEachSubViewInIDEViews_: (callback = noop, paneType) ->
+    if typeof callback is 'string'
+      [paneType, callback] = [callback, paneType]
+
     for ideView in @ideViews
       for pane in ideView.tabView.panes
         view = pane.getSubViews().first

    @getActivePaneView().emit 'SaveRequested'

  saveAllFiles: ->
    @forEachSubViewInIDEViews_ (view) ->
      view.emit 'SaveRequested'
    , 'editor'

  updateStatusBar: (component, data) ->
    {status, menuButton} = @statusBar

    menuButton.show()

  doResize: ->
    @forEachSubViewInIDEViews_ 'editor', (editorPane) ->
      editorPane.aceView.ace.editor.resize()
