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">
|
||||
</option>
|
||||
<option
|
||||
defaultValue="false"
|
||||
name="MBS30Opt.Posix.Verbose"
|
||||
applicabilityCalculator="org.eclipse.cdt.managedbuilder.core.tests.AlwaysOnApplicabilityCalculator"
|
||||
category="gnu.c.compiler.category30.other"
|
||||
command="-v"
|
||||
defaultValue="true"
|
||||
id="gnu.c.compiler.option30.misc.verbose"
|
||||
name="MBS30Opt.Posix.Verbose"
|
||||
valueType="boolean">
|
||||
</option>
|
||||
<option
|
||||
|
@ -2298,6 +2299,16 @@
|
|||
id="gnu.c.compiler.option30.misc.ansi"
|
||||
valueType="boolean">
|
||||
</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
|
||||
sources="c"
|
||||
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