public interface IOptionProvider
Modifier and Type | Method and Description |
---|---|
String[] |
getFeatureIDs()
Deprecated.
It is no longer necessary to return the supported features in this
method. Supported features must be statically declared in the extension declaration
using the forFeature element.
|
void |
setDefaultOptionValues(com.ibm.rational.test.common.schedule.Schedule theSchedule)
Called whenever a test is added to a schedule, so that contributors can
initialize their own options and add them to the Schedule.
|
void setDefaultOptionValues(com.ibm.rational.test.common.schedule.Schedule theSchedule)
public void setDefaultOptionValues(Schedule theSchedule)
{
if (theSchedule != null)
{
MyOptions options = theSchedule.getOptions(MyOptions.class.getName());
if (options == null)
{
options = MyFactory.createMyOptions();
if (options != null)
{
options.setValue1("Hi");
options.setValue2("There!");
options.setIntValue(42);
theSchedule.addOptions(options);
}
}
}
}
Note that in the example above, MyOptions is a class the is derived
from com.ibm.rational.test.common.models.behavior.CBOption
String[] getFeatureIDs()
© Copyright IBM Corp. 2013. All rights reserved.