Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse and external editors

 
Samuel Cox
Ranch Hand
Posts: 96
Scala Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Samuel Cox
Ranch Hand
Posts: 96
Scala Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 96
Scala Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic