1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Build Type comboBox false update when switching tab (#1119)

The Build type combo custom value was lost when switching to another tab and back again.
Solution: Add modifyListener for buildTypeCombo and generator combo to keep properties up-to-date when switching tab.

Fixes #1118
This commit is contained in:
DangMinhTam382 2025-04-24 01:07:47 +07:00 committed by GitHub
parent af359a7bba
commit a104a4f88d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,6 +96,7 @@ public class CMakeBuildTab extends CommonBuildTab {
generatorCombo = new Combo(cmakeGroup, SWT.DROP_DOWN);
generatorCombo.setItems(generatorNames);
generatorCombo.select(0);
generatorCombo.addModifyListener(e -> updateLaunchConfigurationDialog());
generatorCombo.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
@ -142,6 +143,7 @@ public class CMakeBuildTab extends CommonBuildTab {
buildTypeCombo = new Combo(buildTypeComp, SWT.DROP_DOWN);
buildTypeCombo.setItems(buildTypes);
buildTypeCombo.setToolTipText(Messages.CMakeBuildTab_BuildTypeCombo_Tooltip);
buildTypeCombo.addModifyListener(e -> updateLaunchConfigurationDialog());
buildTypeCombo.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {