mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Update tests for IOptionApplicability callback
This commit is contained in:
parent
74d7f35845
commit
a3ca580f44
7 changed files with 97 additions and 2 deletions
|
@ -2283,11 +2283,12 @@
|
||||||
valueType="string">
|
valueType="string">
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
defaultValue="false"
|
applicabilityCalculator="org.eclipse.cdt.managedbuilder.core.tests.AlwaysOnApplicabilityCalculator"
|
||||||
name="MBS30Opt.Posix.Verbose"
|
|
||||||
category="gnu.c.compiler.category30.other"
|
category="gnu.c.compiler.category30.other"
|
||||||
command="-v"
|
command="-v"
|
||||||
|
defaultValue="true"
|
||||||
id="gnu.c.compiler.option30.misc.verbose"
|
id="gnu.c.compiler.option30.misc.verbose"
|
||||||
|
name="MBS30Opt.Posix.Verbose"
|
||||||
valueType="boolean">
|
valueType="boolean">
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
|
@ -2298,6 +2299,16 @@
|
||||||
id="gnu.c.compiler.option30.misc.ansi"
|
id="gnu.c.compiler.option30.misc.ansi"
|
||||||
valueType="boolean">
|
valueType="boolean">
|
||||||
</option>
|
</option>
|
||||||
|
<option
|
||||||
|
applicabilityCalculator="org.eclipse.cdt.managedbuilder.core.tests.AlwaysOffApplicabilityCalculator"
|
||||||
|
defaultValue="true"
|
||||||
|
name="MBS30Opt.Posix.FakeOption"
|
||||||
|
category="gnu.c.compiler.category30.other"
|
||||||
|
command="-fake"
|
||||||
|
id="gnu.c.compiler.option30.misc.FakeOption"
|
||||||
|
isAbstract="false"
|
||||||
|
valueType="boolean">
|
||||||
|
</option>
|
||||||
<inputType
|
<inputType
|
||||||
sources="c"
|
sources="c"
|
||||||
dependencyExtensions="h"
|
dependencyExtensions="h"
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,42 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2005 Texas Instruments Inc. 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
|
||||||
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Texas Instruments Inc. - initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.cdt.managedbuilder.core.tests;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.managedbuilder.core.IOptionApplicability;
|
||||||
|
import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class AlwaysOffApplicabilityCalculator implements IOptionApplicability {
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.managedbuilder.core.IOptionApplicability#isOptionUsedInCommandLine()
|
||||||
|
*/
|
||||||
|
public boolean isOptionUsedInCommandLine(ITool tool) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.managedbuilder.core.IOptionApplicability#isOptionVisible()
|
||||||
|
*/
|
||||||
|
public boolean isOptionVisible(ITool tool) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.managedbuilder.core.IOptionApplicability#isOptionEnabled()
|
||||||
|
*/
|
||||||
|
public boolean isOptionEnabled(ITool tool) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2005 Texas Instruments Inc. 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
|
||||||
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Texas Instruments Inc. - initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.cdt.managedbuilder.core.tests;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.managedbuilder.core.IOptionApplicability;
|
||||||
|
import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class AlwaysOnApplicabilityCalculator implements IOptionApplicability {
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.managedbuilder.core.IOptionApplicability#isOptionUsedInCommandLine()
|
||||||
|
*/
|
||||||
|
public boolean isOptionUsedInCommandLine(ITool tool) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.managedbuilder.core.IOptionApplicability#isOptionVisible()
|
||||||
|
*/
|
||||||
|
public boolean isOptionVisible(ITool tool) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.managedbuilder.core.IOptionApplicability#isOptionEnabled()
|
||||||
|
*/
|
||||||
|
public boolean isOptionEnabled(ITool tool) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue