Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Common toolchain options

 
> You could use the following logic in your value handler to determine
> whether the given option is the one representing the
> "extension.option.id" extension option:
> 
> Public boolean handleValue(IBuildObject configuration, 
>                     IHoldsOptions holder, 
>                     IOption option,
>                     String extraArgument, 
>                     int event){
> 	IOption neededOption = holder.getOptionBySuperClassId(extension.option.id");
> 	if(neededOption == option){
> 		//process the option
> 	}
> }

Or use option.isExtensionElement()?


Back to the top