Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse and external editors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse and external editors" Watch "Eclipse and external editors" New topic

Eclipse and external editors

Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96


I'd like to use gvim (for windows) to edit my java files. My problem is that often when I open a file from the eclipse workspace, either from eclipse or from the file system, I am not getting the latest changes to this file.

Does anyone know the solution to this problem?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33106

In Eclipse 2.1, you can refresh the project or file to get the latest version. In Eclipse 3.X, you can set it to automatically pick up changes under the workspace directory.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is a VI plugin for Eclipse.
It doesn't have all the features of gvim but it's got the basics.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

Jeanne, it's not that eclipse isn't picking up the changes that I make in gvim. If I open the file with Java Editor, I get my latest changes; however, if I open the file with gvim (either from eclipse or from the workspace dir), I get an older version of the file. I have been using eclipse for some time and never noticed this before.

I didn't know I could set eclipse (I use 3.0.1) to automatically get the changes. Thanks for that info.

Ben, I have tried the plugin, but it lacks too much functionality at this time.
[ May 04, 2005: Message edited by: Samuel Cox ]
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

It's getting even more weird.

Now sometimes the Java Editor opens up the older version. If I do a compare to local history, it shows the latest (correct) version of the workspace file.

Noone else has experienced this behavior?
I agree. Here's the link:
subject: Eclipse and external editors
It's not a secret anymore!