Skip to main content

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

Hi,

I'm having trouble implementing my own IManagedOptionValueHandler.

I've partly implemented the example shown in the link below and uncommented out the code in handleValue():

http://www.koders.com/java/fidFABDBCEFC7D7B59A060EFB0C4565C5CC4D9BB170.aspx?s=idef%3Aconfiguration

I changed the singleton instantiation to use just a normal public constructor so I could play around with the code. When I run I get EVENT_OPEN & EVENT_APPLY events for my correct options but with random numbers at the end of the option IDs. I assume this is because multiple instances of the class are being created. But how am I supposed to use this? How should the handler be instantiated by my plugin?


Thanks for any advice.

rgds john




Leonardo Augusto GuimarĂ£es Garcia wrote:
Hi,

djlynott@xxxxxxxxxxxxxxxxxxx wrote:

I'm trying to add support for a GCC based cross development toolchain with CDT 4.0. Many projects I work with are mixed language and have C and C++ sources. While the current GCC based toolchains support this, they force me to enter include paths and other settings separately for each tool.

When developing my plug-in I would like to have a number of options like include paths that are shared between tools. Is this possible from a UI and model perspective (the MBS extensibility document indicates an option can have only one tool).

If you would like to share exactly the same option values between two options from different tools in the same tool-chain you can use the IManagedOptionValueHandler interface and valueHandler attribute of the option element on the buildDefinitions extension-point. This way, when the value of one of the options change, you can programmatically sync the value of the other option.
Since many of the toolchains I want to support are cross development toolchains, I think the current "Manage configurations" dialog is a bit naive at present. It should select a toolchain and then offer existing and default configurations that match the toolchain vs. assume the existing toolchain that is selected for the project (or at least allow me to override it in that dialog). I know our configurations are quite complex and I think my users are going to want the ability to import configurations external to a given project as well.

I'd like to make minimal changes to support the above use-cases or at least know that CDT development will align with my needs before expending a bunch of work. Are these type of things planned? Are they there already and I just don't know how to take advantage of them? I could use some guidance.


Thanks,
-- Dave
------------------------------------------------------------------------

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Leonardo Garcia
IDE Software Engineer - Linux on Cell
Linux Technology Center Brazil
Phone: +55-19-2132-2068 (T/L: 839-2068)
lagarcia@xxxxxxxxxx


------------------------------------------------------------------------

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top