public final void hideDialog(WorkbenchDialog dialog) {
        LOGGER.trace("hideDialog");
        DialogControl dialogControl = dialog.getDialogControl();
        dialogControl.setWorkbench(null);
        hideOverlay(dialogControl);
    }
Hides the {@code dialog} which was previously shown in the view
using {@link #showDialog(WorkbenchDialog)}.

@param dialog to be hidden
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/Workbench.java