 
   updateFileContentOnLocalStorage: (file, content)->
     fileName = @getFileFullPath file
-    @saveToLocalStorage fileName, content
+    @storage.setValue "OE-#{fileName}", content
 
-  saveToLocalStorage: (fileName, contents)->
-    @storage.setValue "OE-#{fileName}", contents
+  removeFileContentFromLocalStorage: (file)->
+    fileName = @getFileFullPath file
+    @storage.unsetKey "OE-#{fileName}"
 
   addToOpenedFiles: (fileName)->
     vmName = FSHelper.getVMNameFromPath fileName

    fileName = "[#{file.vmName}]#{plainPath}"
    return fileName

  saveOpenedTabsContentToLocalStorage: ->
    {aceViews} = KD.singletons.appManager.get("Ace").mainView
    for filePath in Object.keys aceViews
      content = aceViews[filePath].ace.getContents()
      @saveToLocalStorage filePath, content

  saveEditorHistory: ->
    log "NOT IMPLEMENTED YET"

      @openedFiles.splice index, 1
      @storage.setValue "openedFiles", @openedFiles
      @removeFromSaveArray file
      @removeFileContentFromLocalStorage file

  getRecentOpenedFiles: ->
    @openedFiles
