[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Importing an existing pdom file into a project.
|
You can generate PDOMs with ExternalExportProjectProvider
and you can provide the pdom for your project configuration
with IReadOnlyPDOMProvider
What
we're doing is indexing hundreds of SDK headers for a known source base and
then we provide the resulting
prebiult PDOM to verified projects with
IReadOnlyPDOMProvider. However, these PDOM are just created from temporary
projects
(not
projects in other workspaces) so the indexes cannot be updated without
regenerating the whole thing.
If
that sounds like what yer trying to do see the docs under:
org.eclipse.cdt.doc.isv\guide\dom\index\prebuiltIndexes.html
Tim
I know PDOMManager is an internal class, but I am faced with a
task where the amount of time indexing a huge project is not acceptable. So,
the idea is to use an existing project's indexed file for another project
created in a different workspace with same source tree.
But, although
this is working but it is referring to the other workspace's project. Ideally,
if there is a method that I can use to change the project name inside the pdom
file or something then everything would be great and is exactly what is needed
for my task.
Generic Question on Indexer
=====================
I
have a huge project that took 2 to 3 hours to create an index file. Is there a
way I can make use of this index file in other workspaces where project are
created with exact same source tree structure, imagine multiple users pulling
a view and creating a project out of it. So, I was looking if there are any
capabilities like these available?
At this point in time, I had to use
the internal calss, although it is discouraged. I hope I gave u a
clarification in my question Markus.
Thanks,
-Sri.
On Fri, May 16, 2008 at 12:11 AM, Schorn, Markus <
Markus.Schorn@xxxxxxxxxxxxx>
wrote:
I don't
exactly understand what you are trying to achieve. Anyways, PDOMManager is
an internal class and should not be used from outside of the CDT
plugins.
Markus.
Hi,
I am new to the eclipse plugin development world and
CDT in particular. Here is my problem:-
1. I have created a
standard make C Project programatically by turning the indexer off, from
an existing source code tree.
2. I turned the indexer on and I can see
the pdom file getting created.
3. Now, I want to make use of this index
file in the future after creating the project following step 1
method.
4. So, I created the project with indexer turned off and then
tried to import the index file using the following
method:-
PDOMManager manager =
(PDOMManager) CCorePlugin.getIndexManager();
manager.importProjectPDOM(<ICProject>,
<InputStream>);
After running this code, there were no
exceptions but I cannot see the function calls getting indexed. I am not
sure if I am missing something here. Any suggestions?? Please
advise.
Btw, I am using the null indexer id to turn the indexer off
while creating the project and when I am importing the index file, I am
not changing this indexer id.
Thanks,
-Sri.
_______________________________________________
cdt-dev
mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev