title: Edit item in JavaFX TreeView
body: <p>I have this custom TreeView code:</p>
  
  <pre><code>treeView.setCellFactory(new Callback&lt;TreeView&lt;Tree&gt;, TreeCell&lt;Tree&gt;&gt;()
          {
              @Override
              public TreeCell&lt;Tree&gt; call(TreeView&lt;Tree&gt; treeView)
              {
                  final TreeCell&lt;Tree&gt; cell = new TreeCell&lt;Tree&gt;()
                  {
                      @Override
                      protected void updateItem(Tree item, boolean empty)
                      {
                          super.updateItem(item, empty);
                          if (!empty)
                          {
                              setText(item != null ? item.toString() : "");
                              setGraphic(createImageView(item));
                              setContextMenu(createContextMenuTreeItem(item));
                          }
                          else
                          {
                              setText(null);
                              setGraphic(null);
                              setContextMenu(null);
                          }
                      }
                  };
  
                  return cell;
              }
          });
  </code></pre>
  
  <p>I would like to be able to  rename the nodes of the tree using Content Menu. Can you help me to implement this?</p>