 
     file = @getData()
     unless /localfile:/.test file.path
+      @notify "Loading...", null, null, 10000
       file.fetchContents callback
     else
       callback null, file.contents or ""


  viewAppended:->

    @appStorage.fetchStorage (storage)=>
      require ['ace/ace'], (ace)=>
        @editor = ace.edit "editor#{@getId()}"
        @prepareEditor()
        @utils.wait => @emit "ace.ready"
        @fetchContents (err, contents)=>
          @setContents contents if contents
          @editor.gotoLine 0

  prepareEditor:->


  ###

  notification = null
  notify:(msg, style, details, duration)->

    notification.destroy() if notification

