Class SettingsDialog
java.lang.Object
io.github.jbastgen.stemma.app.ui.settings.SettingsDialog
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 Summary
Modifier and TypeMethodDescriptionstatic DialogOverlaycreate(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.static booleanvalidProxy(String text) Whether the text is a proxy address: a host, with or withouthttp://, and no password in it.
-
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
Whether the text is a proxy address: a host, with or withouthttp://, and no password in it.
-