Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Programmatically import a CDT project

Please stop spamming and remove me from your distribution list
Thanks

Sent from my iPhone

> On May 29, 2019, at 12:37 AM, Clément Hurlin <clement.hurlin@xxxxxxxxxxxxx> wrote:
> 
> Hi Srividya,
> 
>  Importing a project programmatically goes like this:
> 
> IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
> IProject project = root.getProject(projectName)
> project.open(new NullProgressMonitor())
> 
> Until you do something CDT-specific, you can use plain Eclipse APIs.
> 
> Best,
> Clément
> 
>> Hi All,
>> 
>>  
>> 
>> I am trying to programmatically import a CDT project into Eclipse workspace.
>> 
>> I found this API -
>> 
>> https://github.com/eclipse-cdt/cdt/blob/cdt_9_7/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HeadlessBuilder.java
>> 
>> But unfortunately CDT packages an older version of
>> *org.eclipse.cdt.managedbuilder.core (8.6)* in which the API I want to
>> invoke is “Private”.
>> 
>> Is there any other API from CDT that I can extend to programmatically
>> implement the logic of File -> Import -> Existing projects into workspace ?
>> If not in CDT, maybe in Eclipse source code base?
>> 
>>  
>> 
>> Thank you,
>> 
>> Srividya
>> 
>> 
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/cdt-dev
>> 
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top