     fatalError("init(coder:) has not been implemented")
   }
 
+  fileprivate let titleField = NSTextField(forAutoLayout:())
   fileprivate let closeButton = NSButton(forAutoLayout:())
   fileprivate let cogButton = NSPopUpButton(forAutoLayout:())
 

    if let customToolbar = self.customToolbar {
      self.addSubview(customToolbar)
    }
    self.addSubview(close)
    self.addSubview(cog)

    close.autoPinEdge(toSuperviewEdge: .top, withInset: 2)
    close.autoPinEdge(toSuperviewEdge: .right, withInset: 2)

  let customMenuItems: [NSMenuItem]
  var customToolbar: NSView?

  var tool: WorkspaceTool? {
    didSet {
      self.titleField.stringValue = self.tool?.title ?? ""
    }
  }

  override var intrinsicContentSize: CGSize {
    if #available(macOS 10.11, *) {
