Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Linked resouces in .project do no show
Linked resouces in .project do no show [message #330305] Thu, 24 July 2008 19:44 Go to next message
Eclipse UserFriend
Originally posted by: jim.walseth.teejet.com

Having a far-flung codebase, we have many linked resources. Apparently
not so cleverly, I added linked resources by manually editting the project
file. In spite of my careful efforts to mimic the XML that results from
adding a resouce through the IDE ala

<link>
<name>Shared Source/CAgPoint.cpp</name>
<type>1</type>
<locationURI>VAR_src0/AgData/CAgPoint.cpp</locationURI>
</link>


these resources do not appear! No errors ocurr when opening the project.

In what secret place are these resources also listed? Not in the cproject
where of course I looked. Any ideas?

[This was posted on CDT and I gather taht was not appropo. -JCW]
Re: Linked resouces in .project do no show [message #330307 is a reply to message #330305] Thu, 24 July 2008 21:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"Jim Walseth" <jim.walseth@teejet.com> wrote in message
news:33f857437d530150451e80ce49895898$1@www.eclipse.org...
> Having a far-flung codebase, we have many linked resources. Apparently
> not so cleverly, I added linked resources by manually editting the project
> file. In spite of my careful efforts to mimic the XML that results from
> adding a resouce through the IDE ala
>
> <link>
> <name>Shared Source/CAgPoint.cpp</name>
> <type>1</type>
> <locationURI>VAR_src0/AgData/CAgPoint.cpp</locationURI>
> </link>
>
>
> these resources do not appear! No errors ocurr when opening the project.
>
> In what secret place are these resources also listed? Not in the cproject
> where of course I looked. Any ideas?
>
> [This was posted on CDT and I gather taht was not appropo. -JCW]
>

Have you defined the VAR_src0 Link Variable in your workspace? Have you
tried refreshing the project where the link was added?
Re: Linked resouces in .project do no show [message #330336 is a reply to message #330307] Fri, 25 July 2008 17:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jim.walseth.teejet.com

I have opened and closed the project and refreshed it. The linked files
that show up are the ones I added through the IDE, only. These are in the
same folder 'Shared Source' and use the same Path Variable 'VAR_src0'.
They appear adjacent to the links I added by editting the .project file.
I looked at .project an editor that allows me to see white space and
confirmed the format of the <link></link> blocks are identical at least to
the naked eye.

Vexing.

After some research I have demonstrated to my safisfaction that two
identical .project files can produce differing results when opened in the
IDE -- the difference being only the way they are produced, in the IDE
versus in a text editor. This must mean that information is stored
somewhere else. Prowling for such an entity I found the '.metadata'
folder (same level as my 'EclipseProj' project folder) and in there the
'org.eclipse.cdt.core' folder and in there the
'ElipseProj.1216852405719.pdom' file. This 3.3 megabyte file has a
modification time same as the .project file.

The 'cdt' may be a clue that I should not have come over here from the cdt
group after all!

(Thanks for responding to both of my postings, Dave.)
Re: Linked resouces in .project do no show [message #330383 is a reply to message #330336] Mon, 28 July 2008 06:29 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Jim Walseth wrote:
> After some research I have demonstrated to my safisfaction that two
> identical .project files can produce differing results when opened in the
> IDE -- the difference being only the way they are produced, in the IDE
> versus in a text editor. This must mean that information is stored
> somewhere else. Prowling for such an entity I found the '.metadata'
> folder (same level as my 'EclipseProj' project folder) and in there the
> 'org.eclipse.cdt.core' folder and in there the
> 'ElipseProj.1216852405719.pdom' file. This 3.3 megabyte file has a
> modification time same as the .project file.
The pdom file contains the indexer data.

Two identical .project files should produce identical results if your
workspace settings (preferences) are identical i.e. you open them in the
same workspace or you export/import your workspace preferences.

If the export/import of your workspace preferences does not give identical
results when importing the two project files it might be possible that not
all of your workspace preferences are exported. These preferences are
stored in .metadata/.plugins/org.eclipse.core.runtime/.settings. You can
manually check them if something is missing.

In addition, you might have a look at the files in the directory
project/.settings. There are some additional preferences stored (project
specfic settings that override workspace preferences).

Axel


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Adding TreeColumn/TableColumn to a TreeViewer/TableViewer at runtime
Next Topic:Programmatically generating a launch configuration
Goto Forum:
  


Current Time: Thu Dec 26 20:49:55 GMT 2024

Powered by FUDForum. Page generated in 0.03700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top