   ###
   CONTEXT MENU CREATE/MANAGE
   ###
-  
+
   createContextMenu:(nodeView, event)->
-    
+
     event.stopPropagation()
     event.preventDefault()
     return if nodeView.beingDeleted or nodeView.beingEdited
-    
+
     if nodeView in @selectedNodes
       contextMenu = @contextMenuController.getContextMenu @selectedNodes, event
-    else  
+    else
       @selectNode nodeView
       contextMenu = @contextMenuController.getContextMenu [nodeView], event
     no
-  
+
   contextMenuItemSelected:(nodeView, contextMenuItem)->
-    
+
     {action} = contextMenuItem.getData()
     if action
       # return false if you don't want contextmenu to disappear
       shouldDestroy = @["contextMenuOperation#{action.capitalize()}"]? nodeView, contextMenuItem
       if shouldDestroy isnt no
         @contextMenuController.destroyContextMenu()
-  
+
   ###
   RESET STATES
   ###
-  
+
   resetBeingEditedItems:->
-    
+
     @beingEdited.resetView()
-  
+
   organizeSelectedNodes:(listController, nodes, event = {})->
-    
+
     @resetBeingEditedItems() if @beingEdited
     super
 
   ###
   DND UI FEEDBACKS
   ###
-  
+
   showDragOverFeedback:(nodeView, event)-> super
-    
+
   clearDragOverFeedback:(nodeView, event)-> super
-  
+
   clearAllDragFeedback:-> super
-  
+
   ###
   HANDLING MOUSE EVENTS
   ###
-  
+
   click:(nodeView, event)->
-    
+
     if $(event.target).is ".chevron-arrow"
       @contextMenu nodeView, event
       return no
     super
-  
+
   dblClick:(nodeView, event)->
 
     @openItem nodeView
 
   contextMenu:(nodeView, event)->
-    
+
     if @getOptions().contextMenu
       @createContextMenu nodeView, event
 

  notification = null

  notify:(msg, style, details)->
    
    return unless @getView().parent?

    notification.destroy() if notification
    
    if details and not msg? and /Permission denied/.test details
      msg = "Permission denied!"
    
    style or= 'error' if details
    
    notification = new KDNotificationView
      title     : msg or "Something went wrong"
      type      : "mini"

        @emit "file.opened", nodeData

  openFile:(nodeView, event)->

    return unless nodeView
    file = nodeView.getData()
    appManager.openFileWithApplication file, "Ace"
