Class SettingsDialog

java.lang.Object
io.github.jbastgen.stemma.app.ui.settings.SettingsDialog

public final class SettingsDialog extends Object
The global settings: general, appearance, Git, diff and merge, network. Works on copies of the settings and hands them to onSave only when the user presses Save.
  • Method Details

    • create

      public static DialogOverlay create(AppSettings current, ViewSettings view, io.github.jbastgen.stemma.git.cli.GitDiscovery discovery, javafx.stage.Window owner, Host host, BiConsumer<AppSettings,ViewSettings> onSave, Runnable close)
      Builds the dialog.
      Parameters:
      onSave - receives the edited settings and the edited look; called only for a valid Save
    • validProxy

      public static boolean validProxy(String text)
      Whether the text is a proxy address: a host, with or without http://, and no password in it.