Re: [OT] eclipse 'refresh' doesn't work

From: Alex Hunsley (lard_at_tardis.ed.ac.molar.uk)
Date: 11/28/03


Date: Fri, 28 Nov 2003 12:10:00 +0000

Alex Hunsley wrote:
> Lutz Horn wrote:
>
>> Hi,
>>
>> * Alex Hunsley <lard@tardis.ed.ac.molar.uk> [27 Nov 2003]:
>>
>>> I'm using Eclipse 2.1.2. I edited a java source file outside of
>>> eclipse, and have just found out that eclipse caches its copy of
>>> the file (d'oh!) Apparently right clicking the file/class and
>>> hitting "Refresh" will resync the cached copy with the HD copy,
>>> but it just doesn't work. I've tried it with the file open,
>>> closed, tried it on the parent folder, I've touched the file in
>>> question many time, still no refresh. I've even relaunched
>>> eclipse, no effect.
>>
>>
>>
>> The way you said you do it is the way to go.
>>
>> Are you *really* sure that you are editing the correct file with the
>> outside tool? Take a look at the project properties for the location
>> of the source files.
>
>
> I'm pretty sure. I've tried to verify the location of files in eclipse
> project, but in the Java Build Path section, in the Source tab, if I
> select my source icon and hit "Edit", it won't tell me in any way where
> the source files map to the hard drive. How do I see this info? It's a
> bit opaque like that....
> alex

Bum. I've checked the properties for a java files and discovered, yes,
you guessed it, I'm not editing the real file. Eclipse has made a copy
of all my java source files somewhere below the Eclipse install
directory. How do I stop it doing this? I remember a checkbox about
"Link to the file system", do I have to check this to ensure a copy is
not made?

cheers
alex



Relevant Pages