In netbeans, if I open a file which is under version control the lines which are modified are highlighted in the left. (green for new lines and blue for modified lines)
In eclipse too you will get the line highlighted which is changed util you save the file. and highlight is nothing but the change in color at the left panel of the editor before the start of that changed line.
In Eclipse by using its Quick Diff feature. This is easy to do:
Enable quick diff
.Use this reference source
. Git, SVN and CVS should
be present here. Mercurial appears if the MercurialEclipse plugin is
installed.Show differences in overview ruler
.You should be able to see the newly added, modified or deleted lines marked in colors in the left bar on which line numbers are usually displayed. The colors used are the ones set in the Quick Diff dialog (see above steps). You can also view these uncommitted locations marked along the overview ruler on the right.
By default, it compares to the latest version on disk, which, if you've saved the file, is no diff at all. You have to activate the comparison against a SCM repo. I'm not sure what happens if you more than one type of SCM since this is only a single selection.
There are at least two things you must do to get revision-based change highlighting (i.e., ones that do not disappear when the file is saved) to show up in Eclipse's "overview ruler" when using Git:
Preferences
> Team
> Git
> Projects
> Automatically Share project that are located inside Git repositories
is checked or import the project into your workspace using Import...
> Git
> Projects from Git
(as pointed out by @cornelius in a comment on another answer) Preferences
> Editors
> Text Editors
> Quick Diff
EGit plugin's Quick Diff does exactly the same as netbans modified lines feature.
http://wiki.eclipse.org/EGit/User_Guide/State
With Subversive, you can do Team > Show Annotations, and it will annotate the lines with the author and date of the last modification of that line.