Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Add values on a build option
Add values on a build option [message #662645] Thu, 31 March 2011 12:04
kkt8 Mising name is currently offline kkt8 Mising nameFriend
Messages: 27
Registered: November 2010
Junior Member
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 Very Happy

[Updated on: Thu, 31 March 2011 12:05]

Report message to a moderator

Previous Topic:How to disable ibus input method in ubuntu?
Next Topic:Annotations in Outline View, ..
Goto Forum:
  


Current Time: Tue Apr 23 10:01:15 GMT 2024

Powered by FUDForum. Page generated in 0.03349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top