1
0
Fork 0
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:
Andrew Gvozdev 2013-02-19 23:00:21 -05:00
parent 9c88bbc509
commit c48e321ea3

View file

@ -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);
} }