Re: [OT] eclipse 'refresh' doesn't work
From: Alex Hunsley (lard_at_tardis.ed.ac.molar.uk)
Date: 11/28/03
- Next message: Alex Hunsley: "Re: map two data structure"
- Previous message: Alex Hunsley: "Re: [OT] eclipse 'refresh' doesn't work"
- In reply to: Alex Hunsley: "Re: [OT] eclipse 'refresh' doesn't work"
- Next in thread: Chris Smith: "Re: [OT] eclipse 'refresh' doesn't work"
- Reply: Chris Smith: "Re: [OT] eclipse 'refresh' doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Nov 2003 12:31:22 +0000
Alex Hunsley wrote:
> 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
Ok, I've found out how to do things the way I want them.
I've written a reminder for myself in the future, I'm including it here
the any benefits of other puzzled souls:
HOWTO:
Add your source files to an eclipse project
so that you are editing the real files on disk!
-----------------------------------------------
Once you have made a project with the right class path etc.,
do Project menu -> Properties -> Java Build Path. Click "add folder"
button at right, ensure your propject is selected in the list
and hit "Create new folder". On the window that pops up,
click "Advanced" to show advanced options, tick "Link to folder
in file system", hit browse and browse to the folder containing your
top level class source. For the name of the new folder, you should
type a similar name to the top level actual folder on your disk.
When you add these files, Eclipse will compile them. It may produce
lots of errors, but if it does, it asks you something about adjusting
the source location - hit yes, and eclipse will fix things and ask
you to recompile again. Answer yes, and you should compile correctly
this time.
- Next message: Alex Hunsley: "Re: map two data structure"
- Previous message: Alex Hunsley: "Re: [OT] eclipse 'refresh' doesn't work"
- In reply to: Alex Hunsley: "Re: [OT] eclipse 'refresh' doesn't work"
- Next in thread: Chris Smith: "Re: [OT] eclipse 'refresh' doesn't work"
- Reply: Chris Smith: "Re: [OT] eclipse 'refresh' doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]