private static void showPreferenceWindow(final GUIFactory currentGUI){
  properties=currentGUI.getProperties();
  init(currentGUI);
  loadSettings();
  borderPane.setLeft(setupSideNavBar());
  borderPane.setCenter(getGeneralContent());
  borderPane.setBottom(setupBottomBar(currentGUI));
  preferenceDialog=new FXDialog(null,Modality.APPLICATION_MODAL,borderPane,550,450);
  preferenceDialog.setTitle(Messages.getMessage("PdfPreferences.windowTitle"));
  preferenceDialog.show();
}

private static void showPreferenceWindow ( final GUIFactory currentGUI ) { properties = currentGUI . getProperties ( ) ; init ( currentGUI ) ; loadSettings ( ) ; borderPane . setLeft ( setupSideNavBar ( ) ) ; borderPane . setCenter ( getGeneralContent ( ) ) ; borderPane . setBottom ( setupBottomBar ( currentGUI ) ) ; preferenceDialog = new FXDialog ( null , Modality . APPLICATION_MODAL , borderPane , 550 , 450 ) ; preferenceDialog . setTitle ( Messages . getMessage ( "PdfPreferences.windowTitle" ) ) ; preferenceDialog . show ( ) ; }
ensure dialog is setup & display preference dialog .
