1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

[fix] [175153] Connection name field should not be prefilled on first invocation of New Connection wizard

This commit is contained in:
Uwe Stieber 2007-04-18 15:04:35 +00:00
parent 548ba43cd3
commit 21878fa209

View file

@ -120,7 +120,13 @@ public class RSEDefaultNewConnectionWizard extends RSEAbstractNewConnectionWizar
form.setCurrentlySelectedConnection(selectedContext);
if (defaultUserId != null) form.setUserId(defaultUserId);
// bugzilla#175153: setCurrentlySelectedConnection is filling in the name from the selected
// connection. As this is not wanted, set the connection name field always to be empty, except
// there had been a default connection name explicitly set from outside.
if (defaultConnectionName != null) form.setConnectionName(defaultConnectionName);
else form.setConnectionName(""); //$NON-NLS-1$
if (defaultHostName != null) form.setHostName(defaultHostName);
}