From 1f9672dc38fac84528d63857bf7591d8b75b5e7b Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Fri, 2 Mar 2007 12:38:10 +0000 Subject: [PATCH] [fix] System type selection change needs not override last selected system type in dialog settings --- .../newconnection/RSEMainNewConnectionWizard.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java index 07ecd39c48a..8df3eb55e14 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java @@ -323,9 +323,6 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS container.updateTitleBar(); container.updateButtons(); } - - // Save the current selection to the dialog settings - saveWidgetValues(); } /* (non-Javadoc) @@ -373,6 +370,14 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS return true; } + /* (non-Javadoc) + * @see org.eclipse.jface.wizard.Wizard#doNextPressed() + */ + protected boolean doNextPressed() { + saveWidgetValues(); + return super.doNextPressed(); + } + /** * Save the last selected system type id to the dialog settings. * Called from onSelectedSystemTypeChanged and