 KDHitEnterInputView = kd.HitEnterInputView
 KDTabHandleView     = kd.TabHandleView
 KDCustomHTMLView    = kd.CustomHTMLView
+IDEEditorPane       = require '../../workspace/panes/ideeditorpane'
+FSHelper            = require 'app/util/fs/fshelper'
 
 
 module.exports = class IDETabHandleView extends KDTabHandleView


    @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()
