Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Workbench User Guide
Previous Page Home Next Page

Merging changes in the compare editor

The toolbar buttons in the compare editor allows you to merge changes from the left file to the right file and vice versa. There are four types of merges you can perform:

  • Copy All from Left to Right
  • Copy All from Right to Left
  • Copy Current Change from Left to Right
  • Copy Current Change from Right to Left

The Copy All from Left to Right and Copy All from Right to Left actions completely replace the contents of one resource with the other resource.

To merge a single change:

  1. Select the highlighted difference that you want to merge.
  2. Depending on what you want to do, click either the Copy Current Change from Right to Left or the Copy Current Change from Left to Right toolbar button. The selected text is copied from one file to the other.
  3. Right click to get the resource's pop-up menu, and select Save.

The image below gives an example of two files (file1.txt and file2.txt) compared.

Compare view

Related concepts
Three way comparisons
Synchronizing with a CVS repository

Related tasks
Comparing resources
Understanding the comparison
Synchronizing with the repository
Resolving conflicts
Setting preferences for comparing files

Related references
Compare editor
CVS Workspace Synchronization

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire