mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 12:15:47 +02:00
Commit for Leo Treggiari -- Fix for bugzilla 71254
This commit is contained in:
parent
f8f5b6ab82
commit
d52cfb4834
1 changed files with 15 additions and 2 deletions
|
@ -307,11 +307,19 @@ public class BuildToolSettingsPage extends BuildSettingsPage {
|
|||
// the option value
|
||||
switch (opt.getValueType()) {
|
||||
case IOption.BOOLEAN :
|
||||
if (opt.getCommand().equals(optionValue)) {
|
||||
String boolCommand;
|
||||
boolCommand = opt.getCommand();
|
||||
if (boolCommand != null && boolCommand.equals(optionValue)) {
|
||||
getPreferenceStore()
|
||||
.setValue(opt.getId(), true);
|
||||
optionValueExist = true;
|
||||
}
|
||||
boolCommand = opt.getCommandFalse();
|
||||
if (boolCommand != null && boolCommand.equals(optionValue)) {
|
||||
getPreferenceStore()
|
||||
.setValue(opt.getId(), false);
|
||||
optionValueExist = true;
|
||||
}
|
||||
break;
|
||||
case IOption.ENUMERATED :
|
||||
String enum = ""; //$NON-NLS-1$
|
||||
|
@ -400,9 +408,14 @@ public class BuildToolSettingsPage extends BuildSettingsPage {
|
|||
switch (opt.getValueType()) {
|
||||
case IOption.BOOLEAN :
|
||||
ArrayList optsList = new ArrayList(optionsArr);
|
||||
if (opt.getCommand() != null
|
||||
if (opt.getCommand() != null
|
||||
&& opt.getCommand().length() > 0
|
||||
&& !optsList.contains(opt.getCommand()))
|
||||
getPreferenceStore().setValue(opt.getId(), false);
|
||||
if (opt.getCommandFalse() != null
|
||||
&& opt.getCommandFalse().length() > 0
|
||||
&& !optsList.contains(opt.getCommandFalse()))
|
||||
getPreferenceStore().setValue(opt.getId(), true);
|
||||
break;
|
||||
case IOption.STRING :
|
||||
// TODO create a lst of valid default string options for the tool
|
||||
|
|
Loading…
Add table
Reference in a new issue