 
     @on 'dblclick', @lazyBound 'setTitleEditMode', yes
     @on 'ReceivedClickElsewhere', @lazyBound 'setTitleEditMode', no
+
+    @updateTitleAttribute pane  if pane.view instanceof IDEEditorPane
 
 
   setDraggable: ->

KDHitEnterInputView = kd.HitEnterInputView
KDTabHandleView     = kd.TabHandleView
KDCustomHTMLView    = kd.CustomHTMLView


module.exports = class IDETabHandleView extends KDTabHandleView

      @menu.once 'KDObjectWillBeDestroyed', =>
        @unsetClass 'menu-visible'
        @menu = null


  ###*
   * Update HTML title attribute of pane
   *
   * @param {KDTabPaneView} pane
  ###
  updateTitleAttribute: (pane) ->

    return  if pane.data.isDummyFile()

    @setAttribute 'title', FSHelper.plainPath pane.data.path

