mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 401255: LSP userdef entries: Cannot add macro after adding a workspace include path
This commit is contained in:
parent
9c88bbc509
commit
c48e321ea3
1 changed files with 16 additions and 12 deletions
|
@ -489,6 +489,9 @@ public class LanguageSettingEntryDialog extends AbstractPropertyDialog {
|
||||||
|
|
||||||
inputValue.setEnabled(isMacroSelected);
|
inputValue.setEnabled(isMacroSelected);
|
||||||
|
|
||||||
|
if (isMacroSelected) {
|
||||||
|
buttonOk.setEnabled(!inputName.getText().trim().isEmpty());
|
||||||
|
} else {
|
||||||
int indexPathKind = comboPathCategory.getSelectionIndex();
|
int indexPathKind = comboPathCategory.getSelectionIndex();
|
||||||
boolean isProjectSelected = (indexPathKind == COMBO_PATH_INDEX_PROJECT);
|
boolean isProjectSelected = (indexPathKind == COMBO_PATH_INDEX_PROJECT);
|
||||||
boolean isWorkspaceSelected = (indexPathKind == COMBO_PATH_INDEX_WORKSPACE);
|
boolean isWorkspaceSelected = (indexPathKind == COMBO_PATH_INDEX_WORKSPACE);
|
||||||
|
@ -503,6 +506,7 @@ public class LanguageSettingEntryDialog extends AbstractPropertyDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
buttonVars.setEnabled(isFilesystemSelected);
|
buttonVars.setEnabled(isFilesystemSelected);
|
||||||
|
}
|
||||||
|
|
||||||
compositeArea.layout(true);
|
compositeArea.layout(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue