Restrict resizing of the "Fetch from Gerrit" Dialog
commitac91078bdc0666b4d729f8e7eb987aa7bb10d68f
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 14 Jul 2017 09:01:20 +0000 (14 11:01 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sat, 15 Jul 2017 10:55:41 +0000 (15 12:55 +0200)
treed993549d038c52b907e070dfcbe468bfb2ada6fa
parentce8862632acfe37e192047b6e52fb25abe4bbac2
Restrict resizing of the "Fetch from Gerrit" Dialog

WizardDialogs in general can be resized to any size; even made
ridiculously small.

Set the shell's minimum size to the size needed to display the
starting page. This allows making the dialog larger, but not smaller
than the starting page.

If this is deemed useful, we could use the new MinimumSizeWizardDialog
as a drop-in replacement for all other WizardDialogs in EGit. It's
also something that platform.ui might want to adopt.

Bug: 519335
Change-Id: I12d967e2e7054304824577cdd0d4a3bd31963d5f
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/MinimumSizeWizardDialog.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/NonBlockingWizardDialog.java