How to use external external viewers in eclipse? Is there any way to view diff for embedded eclipse?

enter image description here

I am working on a java project in eclipse. Every time I commit a file, I want to see what changes have been made to this file. In eclipse, it is difficult to analyze which rows are deleted, added, changed, etc. Please give your suggestions about this.

+6
eclipse eclipse-plugin
source share
4 answers

In fact, eclipse has a built-in comparison tool. if you need to compare with any other application, try this plugin

http://sourceforge.net/projects/externaldiff/

+2
source share

You do not say which version control system you use, but most of them (cvs, svn, git and perforce that I know) implement Team> Synchronize. The Synchronize perspective provides a preview of both outbound and inbound changes; you can easily see what has changed, what you need to do side by side with what has changed in the repository, which you have not yet received. Right-click the project (or any other selection of versioned resources) and choose Command > Synchronize . This is almost identical to what you show from Netbeans.

You can also use the Compare menu and / or any parameters presented by your version control system in the Team menu for individual files.

The colors in the comparison view can be customized as you wish using Settings > General > Appearance > Colors and Fonts (find Compare text in the tree).

For Mercurial, the MercurialEclipse plugin implements this Synchronize view.

+4
source share

Also, if someone doesn’t need to call it indirectly from Eclipse (for example, I just don’t like installing additional packages, such as externaldiff from Mohamed Jameel's answer on my Linux), you can try calling the external diff viewer from SVN.

On Linux, this article helped me a lot: SVN: how to compare a working copy with a repository version? .

0
source share

I landed here because I was looking for a way to merge in an external merge editor (KDIFF3), but started merging with eclipse. I was not satisfied with the answers above. So here is ho for configuring kdiff3 as a merge and diff editor for SVN in eclipse:

go to Windows β†’ Preferences β†’ Command β†’ SVN β†’ Diff Viewer Add a new configuration (add a button): Extension or image type: * - if you want to specify different types of associations for different editors, I did not need that, therefore, an alquator.

Diff: Program path C: \ Program Files \ KDiff3 \ kdiff3.exe (or wherever you have a merge editor - sry for the window path, feel free to add the linux version to the comments or edit this answer.)

Arguments: $ {base} $ {mine} $ {theirs}

Merge: path to the program C: \ Program Files \ KDiff3 \ kdiff3.exe

Arguments: $ {base} $ {mine} $ {theirs} -o $ {merged}

This will probably work for other merge editors, but with a different argument syntax (think let us know :)).

Use as usual (team-> edit conflict) to merge and compare-> foo to represent diff.

Greetings

0
source share

All Articles