[
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.
|
Hi Markus,
There is no UI involved in this task for exporting, it might be done as part of some automated nightly process. There is a lot of help offered by the CDT in generating the pdom file. The concern is more of using the generated one for an exact same project structure at a different file system location, in a different workspace, during project creation time. The project creation is also done programmatically.
There is no importing of a project involved in my case, it is always about creating projects at different file system location having same source tree structure. I hope you understood what I am trying to accomplish here.
Thanks,
-Sri.
On Mon, May 19, 2008 at 2:35 AM, Schorn, Markus <
Markus.Schorn@xxxxxxxxxxxxx> wrote:
This is supported directly by CDT. Use Export - C/C++ -
Team Shared Index to write a zipped version of the pdom
into the project directory.
When you import the project into a different workspace, the
archive will be used instead of indexing the project,
Markus.
Sent: Saturday, May 17, 2008 1:43 AM
To: CDT
General developers list.
Subject: Re: [cdt-dev] Importing an
existing pdom file into a project.
Importance:
Low
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
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev