mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Bug 162709: In New Connection Wizard, the System Type Description is not visible initially
This commit is contained in:
parent
cb7ea53e70
commit
895604e8fa
1 changed files with 9 additions and 3 deletions
|
@ -90,6 +90,11 @@ public class RSENewConnectionWizardMainPage extends AbstractSystemWizardPage imp
|
||||||
descriptionSystemType = SystemWidgetHelpers.createMultiLineTextField(parent,null,30);
|
descriptionSystemType = SystemWidgetHelpers.createMultiLineTextField(parent,null,30);
|
||||||
descriptionSystemType.setEditable(false);
|
descriptionSystemType.setEditable(false);
|
||||||
|
|
||||||
|
IRSESystemType systemType = RSECorePlugin.getDefault().getRegistry().getSystemType(textSystemType.getSelection()[0]);
|
||||||
|
|
||||||
|
if(systemType!=null) {
|
||||||
|
descriptionSystemType.setText(systemType.getDescription());
|
||||||
|
}
|
||||||
|
|
||||||
return composite_prompts;
|
return composite_prompts;
|
||||||
}
|
}
|
||||||
|
@ -146,14 +151,15 @@ public class RSENewConnectionWizardMainPage extends AbstractSystemWizardPage imp
|
||||||
|
|
||||||
if (event.type == SWT.Selection && event.widget == textSystemType) {
|
if (event.type == SWT.Selection && event.widget == textSystemType) {
|
||||||
|
|
||||||
descriptionSystemType.setText(RSEUIPlugin.getTheSystemRegistry().getSubSystemConfigurationsBySystemType(textSystemType.getSelection()[0])[0].getDescription());
|
|
||||||
|
|
||||||
IWizard wizard = getWizard();
|
IWizard wizard = getWizard();
|
||||||
|
|
||||||
if (wizard instanceof IRSENewConnectionWizard) {
|
if (wizard instanceof IRSENewConnectionWizard) {
|
||||||
String systemTypeStr = textSystemType.getSelection()[0];
|
String systemTypeStr = textSystemType.getSelection()[0];
|
||||||
IRSENewConnectionWizard newConnWizard = (IRSENewConnectionWizard)wizard;
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue