mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[fix] [142197] In New connection dialog, Host Name should be asked before Connection Name
This commit is contained in:
parent
21878fa209
commit
45cb699549
1 changed files with 25 additions and 18 deletions
|
@ -284,8 +284,7 @@ public class SystemConnectionForm implements Listener, SelectionListener, Runnab
|
|||
defaultProfileNames[0] = defaultProfile;
|
||||
}
|
||||
|
||||
if (contentsCreated)
|
||||
doInitializeFields();
|
||||
if (contentsCreated) doInitializeFields();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -293,6 +292,10 @@ public class SystemConnectionForm implements Listener, SelectionListener, Runnab
|
|||
*/
|
||||
public void setConnectionName(String name) {
|
||||
defaultConnectionName = name;
|
||||
if (contentsCreated) {
|
||||
textConnectionName.setText(name != null ? name : ""); //$NON-NLS-1$
|
||||
verify(false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -300,6 +303,10 @@ public class SystemConnectionForm implements Listener, SelectionListener, Runnab
|
|||
*/
|
||||
public void setHostName(String name) {
|
||||
defaultHostName = name;
|
||||
if (contentsCreated) {
|
||||
textHostName.setText(name != null ? name : ""); //$NON-NLS-1$
|
||||
verify(false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,6 +617,22 @@ public class SystemConnectionForm implements Listener, SelectionListener, Runnab
|
|||
if (updateMode)
|
||||
SystemWidgetHelpers.createLabel(composite_prompts, " ", nbrColumns); // filler //$NON-NLS-1$
|
||||
|
||||
// HOSTNAME PROMPT
|
||||
temp = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_HOSTNAME_LABEL);
|
||||
labelHostName = SystemWidgetHelpers.createLabel(composite_prompts, temp);
|
||||
labelHostName.setToolTipText(SystemResources.RESID_CONNECTION_HOSTNAME_TIP);
|
||||
|
||||
if (!updateMode && (defaultSystemType == null)) {
|
||||
defaultSystemType = lastSystemType;
|
||||
|
||||
if ((defaultSystemType == null) || (defaultSystemType.length() == 0))
|
||||
defaultSystemType = textSystemType.getItem(0);
|
||||
}
|
||||
|
||||
textHostName = SystemWidgetHelpers.createHostNameCombo(composite_prompts, null, defaultSystemType);
|
||||
textHostName.setToolTipText(SystemResources.RESID_CONNECTION_HOSTNAME_TIP);
|
||||
SystemWidgetHelpers.setHelp(textHostName, RSEUIPlugin.HELPPREFIX + "ccon0004"); //$NON-NLS-1$
|
||||
|
||||
// CONNECTION NAME PROMPT
|
||||
temp = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_CONNECTIONNAME_LABEL);
|
||||
labelConnectionName = SystemWidgetHelpers.createLabel(composite_prompts, temp);
|
||||
|
@ -628,22 +651,6 @@ public class SystemConnectionForm implements Listener, SelectionListener, Runnab
|
|||
SystemWidgetHelpers.setHelp(textSystemType, RSEUIPlugin.HELPPREFIX + "ccon0003"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
// HOSTNAME PROMPT
|
||||
temp = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_HOSTNAME_LABEL);
|
||||
labelHostName = SystemWidgetHelpers.createLabel(composite_prompts, temp);
|
||||
labelHostName.setToolTipText(SystemResources.RESID_CONNECTION_HOSTNAME_TIP);
|
||||
|
||||
if (!updateMode && (defaultSystemType == null)) {
|
||||
defaultSystemType = lastSystemType;
|
||||
|
||||
if ((defaultSystemType == null) || (defaultSystemType.length() == 0))
|
||||
defaultSystemType = textSystemType.getItem(0);
|
||||
}
|
||||
|
||||
textHostName = SystemWidgetHelpers.createHostNameCombo(composite_prompts, null, defaultSystemType);
|
||||
textHostName.setToolTipText(SystemResources.RESID_CONNECTION_HOSTNAME_TIP);
|
||||
SystemWidgetHelpers.setHelp(textHostName, RSEUIPlugin.HELPPREFIX + "ccon0004"); //$NON-NLS-1$
|
||||
|
||||
// USERID PROMPT
|
||||
/*
|
||||
* We are testing the usability of not prompting for the user ID, so that the user has less to think about when
|
||||
|
|
Loading…
Add table
Reference in a new issue