1
0
Fork 0
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:
Oleg Krasilnikov 2008-02-06 11:47:46 +00:00
parent f27ad8dfdf
commit 622b2739c3

View file

@ -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 {