       @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
+


    @on 'dblclick', @lazyBound 'setTitleEditMode', yes
    @on 'ReceivedClickElsewhere', @lazyBound 'setTitleEditMode', no


  setDraggable: ->


    return  if @titleText

    { view, title, pane } = @getOptions()

    @titleText  = new KDView
      tagName  : 'b'
      cssClass : 'tab-handle-text'
      partial  : title

    view.addSubView @titleText

    @titleInput = new KDHitEnterInputView
      type     : 'text'
      cssClass : 'tab-handle-input'

    @titleInput.on 'EnterPerformed', =>
      { title } = @getOptions()
      newTitle  = @titleInput.getValue()
