mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Check for isOptionVisible() is added to update procedure.
This commit is contained in:
parent
f27ad8dfdf
commit
622b2739c3
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2003, 2007 IBM Corporation and others.
|
||||
* Copyright (c) 2003, 2008 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -415,8 +415,14 @@ public class BuildOptionSettingsUI extends AbstractToolSettingUI {
|
|||
if (optionApplicability == null)
|
||||
return;
|
||||
|
||||
// if the option is not enabled then disable it
|
||||
IBuildObject config = fInfo;
|
||||
|
||||
if (!optionApplicability.isOptionVisible(config, holder, option )) {
|
||||
fieldEditor.setEnabled(false, parent); // temporary: instead of setVisible
|
||||
return;
|
||||
}
|
||||
|
||||
// if the option is not enabled then disable it
|
||||
if (!optionApplicability.isOptionEnabled(config, holder, option )) {
|
||||
fieldEditor.setEnabled(false, parent);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue