 
     appManager.tell 'IDE', 'setActiveTabView', @tabView
     appManager.tell 'IDE', 'setFindAndReplaceViewDelegate'
-    
-    
+
+
   openSavedFile: (file, content) ->
-      
+
       pane = @tabView.getActivePane()
       if pane.data instanceof FSFile and pane.data.path is @getDummyFilePath()
         @tabView.removePane @tabView.getActivePane()

    contextMenu.once 'ContextMenuItemReceivedClick', -> contextMenu.destroy()




  terminateSession: (machine, session)->



    sessions = machine?.getBaseKite().terminalSessions or []

    terminalSessions = {}
    activeSessions   = []

    frontApp.forEachSubViewInIDEViews_ 'terminal', (pane) =>
      activeSessions.push pane.remote.session  if pane.remote?

    sessions.forEach (session, i) =>
      isActive = session in activeSessions
      terminalSessions["Session (#{session[0..5]}) &nbsp"] =
        disabled          : isActive
        separator         : sessions.length is i
        children          :
          'Open'          :
            disabled      : isActive
            callback      : => @createTerminal { machine, session }
          'Terminate'     :
            callback      : => @terminateSession machine, session

    terminalSessions["New Session"] =
      callback            : => @createTerminal { machine }
      separator           : sessions.length > 0

    if sessions.length > 0
      terminalSessions["Terminate all"] =
        callback          : => @terminateSessions machine

    items =
      'New File'          : callback : => @createEditor()
