@@ -433,21 +433,27 @@ public AutoBuildConfigurationDescription(ICConfigurationDescription cfgDescripti
433
433
434
434
//reconstruct the selected options
435
435
for (Entry <String , String > curOptionIndex : optionKeyMap .entrySet ()) {
436
- String value = optionValueMap .get (curOptionIndex .getKey ());
437
- String resourceString = optionResourceMap .get (curOptionIndex .getKey ());
438
- String toolString = optionToolMap .get (curOptionIndex .getKey ());
436
+ String key = curOptionIndex .getKey ();
437
+ String id = curOptionIndex .getValue ();
438
+ String value = optionValueMap .get (key );
439
+ String resourceString = optionResourceMap .get (key );
440
+ String toolString = optionToolMap .get (key );
439
441
if (value == null || resourceString == null ) {
440
442
//This Should not happen
441
443
continue ;
442
444
}
443
- IResource resource = myProject .getFile (resourceString );
445
+ IResource resource = myProject ;
446
+ if (!resourceString .isBlank ()) {
447
+ resource = myProject .getFile (resourceString );
448
+ }
444
449
ITool tool = null ;
445
450
if (toolString != null ) {
446
- myAutoBuildConfiguration .getToolChain ().getTool (toolString );
451
+ tool = myAutoBuildConfiguration .getToolChain ().getTool (toolString );
447
452
}
448
- setOptionValueInternal (resource , tool , curOptionIndex . getValue () , value );
453
+ setOptionValueInternal (resource , tool , id , value );
449
454
450
455
}
456
+ options_combine ();
451
457
452
458
//reconstruct the custom tool commands
453
459
for (Entry <String , String > curOptionIndex : customToolKeyMap .entrySet ()) {
@@ -560,6 +566,8 @@ private void options_updateDefault() {
560
566
561
567
/*
562
568
* take myDefaultOptions and mySelected options and combine them in myCombinedOptions
569
+ * From now onwards the combined options are to be used as they take the default and the
570
+ * user selected option into account in the desired way
563
571
*/
564
572
private void options_combine () {
565
573
myCombinedOptions .clear ();
0 commit comments