Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to use the isCdtProjectCreating

Hi

I'm trying to rewrite my CDT project creation code without using restricted code. However I hit CDT indexer kicking in before the code finished the configuration resulting in errors in the log. Looking for a way out I found isCdtProjectCreating which seems to be created for this problem, but I fail to use it correctly.

I would assume I could do

        ICProjectDescription prjCDesc = cCorePlugin.createProjectDescription(newProjectHandle, true,true);         cCorePlugin.setProjectDescription(newProjectHandle, prjCDesc, true,null);

        cCorePlugin.createCProject(description, newProjectHandle, new NullProgressMonitor(),
                ManagedBuilderCorePlugin.MANAGED_MAKE_PROJECT_ID);

But whatever I tried the cCorePlugin.createCProject mothod always fails.
Basically mapCProjectOwner fails ending in CConfigBasedDescriptorManager.configure which does findDescriptor without create and if that fails with create.
However the findDescriptor using the create option also returns null.

Any help is appreciated.

Jatje




Back to the top