From 5e7a992873c57f6dfe4bfb308a7483b26e12a7c9 Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Wed, 18 Apr 2007 10:07:56 +0000 Subject: [PATCH] [fix] [182382] Missing Titles on New Connection Wizard Pages --- .../wizards/newconnection/RSEMainNewConnectionWizard.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 768743211dd..1b863ecf432 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 @@ -291,6 +291,13 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS if (getContainer() != null && selectedWizard != null && !getContainer().equals(selectedWizard.getContainer())) { selectedWizard.setContainer(getContainer()); } + + // Check if the wizard defines it's own window title. If not, make sure to pass the + // main wizards window title. + if (selectedWizard instanceof Wizard + && (selectedWizard.getWindowTitle() == null || "".equals(selectedWizard.getWindowTitle()))) { //$NON-NLS-1$ + ((Wizard)selectedWizard).setWindowTitle(getWindowTitle()); + } // if the newly selected wizard is the default RSE new connection wizard // and the selected context is non-null, set the selected context to the