Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to add a listener to the Combo-Box in project's settings (as "Debug Level" combo)?

On Wed, 15 Oct 2008 17:46:13 +0400, Wieant Nielander <wieant@xxxxxxxxx> wrote:

Well, I'll explain. I have this option not only for one tool (compiler, for
ex.), but for another (linker as well).
I.e. this option must be set for both compilers (C/C++) and linkers (C/C++). Then, I want to synchronize this option for all tools, when the user changes
the combo-box value.

You could also add your option to a toolChain scoped optionCategory.
You could then use the commandLineGenerator element to provide the
additional switch to the tools depending on the value of the enum.

You could always set the optionvalue on the other tool options through
the IOptionApplicability interface as Wieant suggested (though this
may or may not do the right thing:

This probably would work as the options are spread over multiple
tools, hence on different pages. As far as I know 161605 is only
applicable for changing options on the same visible page.

But beside that, I would also strongly suggest to go for the global
toolchain scoped category implementation.

-- Wieant
cdt-dev mailing list

Thanks, Wieant!
I'll try to use valueHandler and/or global toolchain scoped category.
As I know, in this case the option is not added automatically to the command line for each tool?

Back to the top