title: How to rename tab's text on double click in JavaFX 2?
body: <p>I have a simple code to add tab(s) to a tabPane</p>
  
  <pre><code>@FXML
  private void addNewWorkspaceTab(ActionEvent event) {
  
      Tab workspaceTab = new Tab();
      workspaceTab.setText("New Workspace");
      tabpaneWorkspace.getTabs().addAll(workspaceTab);
      tabpaneWorkspace.setTabClosingPolicy(TabPane.TabClosingPolicy.SELECTED_TAB);
  
  }
  </code></pre>
  
  <p>By double left mouse click on a tab I would like to rename (by typing a new text) the selected tab: how can I do this?</p>