mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Bug #216792 : Enumerated option value handler not called when switching property pages
This commit is contained in:
parent
bb3803a605
commit
986ba49c19
1 changed files with 7 additions and 2 deletions
|
@ -384,11 +384,16 @@ public class BuildOptionSettingsUI extends AbstractToolSettingUI {
|
|||
|
||||
// is the option on this page?
|
||||
if (fieldsMap.containsKey(prefName)) {
|
||||
FieldEditor fieldEditor = (FieldEditor) fieldsMap.get(prefName);
|
||||
try {
|
||||
if ( opt.getValueType() == IOption.ENUMERATED ) {
|
||||
updateEnumList( fieldEditor, opt, holder, fInfo );
|
||||
}
|
||||
} catch ( BuildException be ) {}
|
||||
|
||||
// check to see if the option has an applicability calculator
|
||||
IOptionApplicability applicabilityCalculator = opt.getApplicabilityCalculator();
|
||||
|
||||
if (applicabilityCalculator != null) {
|
||||
FieldEditor fieldEditor = (FieldEditor) fieldsMap.get(prefName);
|
||||
Composite parent = (Composite) fieldEditorsToParentMap.get(fieldEditor);
|
||||
setFieldEditorEnablement(holder, opt, applicabilityCalculator, fieldEditor, parent);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue