[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
AW: [cdt-dev] Setting Binary Parsers
|
Hello Chad,
Programatically, here is how to go. You need to get at the
IProject that represents the project you are working in.
IProject project
= ... ;
The org.eclipse.cdt.managedbuilder.core.ManagedBuildManager has a static
method to get the IManagedBuildInfo for the project.
IManagedBuildInfo
info = ManagedBuildManager.getBuildInfo(project);
From the info you go to toolchain --> target platform and set the list
of binary parser ids.
info.getDefaultConfiguration().getToolChain().getTargetPlatform().setBinaryParserList(new
String[]{ ... });
Hope this helps & works.
Norbert
We have a plug-in that extends the
NewCProject wizard. Our wizards create projects for specific toolchains
and pre-populate the projects with compilable source code for the toolchain.
We want to set the active binary parsers during this phase. Is there
a good example of changing the active binary parsers for a given project,
programmatically? Thanks,
Chad Barnes Rockwell Collins, Inc.