     @getActivePaneView().emit 'SaveRequested'
 
   saveAllFiles: ->
-    @forEachSubViewInIDEViews_ (view) ->
-      view.emit 'SaveRequested'
-    , 'editor'
+    @forEachSubViewInIDEViews_ 'editor', (editorPane) ->
+      editorPane.emit 'SaveRequested'
 
   updateStatusBar: (component, data) ->
     {status, menuButton} = @statusBar

      @statusBar.showInformation()  if ideViewLength is 0

  forEachSubViewInIDEViews_: (callback = noop, paneType) ->
    for ideView in @ideViews
      for pane in ideView.tabView.panes
        view = pane.getSubViews().first

    menuButton.show()

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