Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to generate specific tool command based on more than one option(Implementation of IOptionCommandGenerator interface, need access to other tool options to generate command)
How to generate specific tool command based on more than one option [message #1007357] Tue, 05 February 2013 10:40
Sebastian Wagner is currently offline Sebastian Wagner
Messages: 13
Registered: June 2010
Junior Member
I'm trying to combine several boolean options into one compiler command. Therefore I implemented an own command generator using the IOptionCommandGenerator interface.

As a parameter of generateCommand I get an IOption object for the respective option containing the value and all other information.

Now I tried to read also the other options for this tool by calling
option.getOptionHolder.getOptions
, which returns me the list of all options for this tool.
But in those options, the value is not filled, but is null. I guess this is because the values are depending on the configuration used.

Can anyone help me how to access all other options including values, based on the given IOptions parameter?

Thanks for your help!
Previous Topic:CDT default file extensions
Next Topic:CDT cross project reference building issues
Goto Forum:
  


Current Time: Mon Jul 28 04:36:22 EDT 2014

Powered by FUDForum. Page generated in 0.01526 seconds