Hello,
I added an build option in my plugin which is an extension of the org.eclipse.cdt.managedbuilder.core.buildDefinitions adding plugins.xml:
<optionCategory
id="com.st.stxp70.optionCategory.stxp70cc.macf"
name="Application configuration files"
owner="com.st.stxp70.tool.stxp70cc">
</optionCategory>
<option
applicabilityCalculator="com.st.stxp70.mbs.ui.ACFOptionApplicability"
browseType="none"
category="com.st.stxp70.optionCategory.stxp70cc.macf"
command=""
id="com.st.stxp70.optionCategory.stxp70cc.active.conf"
name=""
tip=""
valueHandler="com.st.stxp70.mbs.ui.ACFValueHandler"
valueType="enumerated">
</option>
it works really well I added the category properly. The option to add is a list of choices that it will be construct from a fil I put a combo (enumerated) which is empty but I want to fill programmatically via a class implementing IManagedOptionValueHandler, for that I declare my option with valueHandler.
I think it's the good think to do, but i don't know how do i do ???:
public boolean handleValue(IBuildObject configuration, IHoldsOptions holder, IOption option, String extraArgument, int event) {
if(event == EVENT_OPEN){
if(option.getBaseId().startsWith(opt_Macf_ActiveConf_ID)){
?????
}
I do not know how to fill my option (so my combo)
if I make a this it' not ok I've an exception : org.eclipse.cdt.managedbuilder.core.BuildException: Bad value for type !
String[] values = new String[]{"1","2","3"};
option.setValue(values);
an idea ?
Thank you
[Updated on: Thu, 31 March 2011 12:05]
Report message to a moderator