This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse and external editors" Watch "Eclipse and external editors" New topic
Author

Eclipse and external editors

Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

Hi,

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Samuel,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ben Souther
Sheriff

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.

http://www.satokar.com/viplugin/index.php


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: http://aspose.com/file-tools
 
subject: Eclipse and external editors
 
Similar Threads
eclipse auto-build task from outside eclipse
Help with writing to a file!
How find all loaded classes/classloaders in JVM?
creating jar file with properties file
war file