private void setupBindings() {
    dialogButtonBar.managedProperty().bind(dialogButtonBar.visibleProperty());
    // FIXME: these two select bindings result in these warnings:
    /* com.sun.javafx.binding.SelectBinding$SelectBindingHelper getObservableValue
       WARNING: Exception while evaluating select-binding */
    dialogButtonBar.visibleProperty().bind(Bindings.select(dialog, "buttonsBarShown"));
    dialogTitle.textProperty().bind(Bindings.select(dialog, "title"));
    Bindings.bindContent(dialogButtonBar.getButtons(), buttons);
  }
Creates a new {@link DialogSkin} object for a corresponding {@link DialogControl}.

@param dialogControl the {@link DialogControl} for which this Skin is created
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/view/controls/dialog/DialogSkin.java