1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00

Bug 162709: In New Connection Wizard, the System Type Description is not visible initially

This commit is contained in:
Kushal Munir 2006-10-30 23:51:37 +00:00
parent cb7ea53e70
commit 895604e8fa

View file

@ -89,7 +89,12 @@ public class RSENewConnectionWizardMainPage extends AbstractSystemWizardPage imp
descriptionSystemType = SystemWidgetHelpers.createMultiLineTextField(parent,null,30);
descriptionSystemType.setEditable(false);
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(textSystemType.getSelection()[0]);
if(systemType!=null) {
descriptionSystemType.setText(systemType.getDescription());
}
return composite_prompts;
}
@ -146,14 +151,15 @@ public class RSENewConnectionWizardMainPage extends AbstractSystemWizardPage imp
if (event.type == SWT.Selection && event.widget == textSystemType) {
descriptionSystemType.setText(RSEUIPlugin.getTheSystemRegistry().getSubSystemConfigurationsBySystemType(textSystemType.getSelection()[0])[0].getDescription());
IWizard wizard = getWizard();
if (wizard instanceof IRSENewConnectionWizard) {
String systemTypeStr = textSystemType.getSelection()[0];
IRSENewConnectionWizard newConnWizard = (IRSENewConnectionWizard)wizard;
newConnWizard.setSelectedSystemType(RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypeStr));
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(systemTypeStr);
newConnWizard.setSelectedSystemType(systemType);
descriptionSystemType.setText(systemType.getDescription());
}
}
}