Bug 339067 - Support comparing files outside the workspace
Summary: Support comparing files outside the workspace
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 05:11 EST by Martin Oberhuber CLA
Modified: 2016-05-10 04:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2011-03-07 05:11:53 EST
Build ID: Eclipse 3.7m5
CQ:WIND00240314  

As an Eclipse / Workbench user, I want to use the integrated diff/merge tool to compare files that are outside my Workspace, or compare a workspace file against a non-workspace file.

I'd intuitively expect a "File > Compare Files..." menu entry which allows choosing both the left and the right file from either inside or outside the workspace.

And, I'd expect the right-click > Compare With... submenu to also include an "another file" entry which would allow picking the file to compare with from either the Workspace or outside the Workspace (with a history dropdown).

Many other simple programmer's editors support such functionality, so I'd expect it from Eclipse too. Using an external tool such as WinMerge can be used as a workaround, but that's missing advanced features of Eclipse Compare such as the integrated JDT formatter when editing in the diff tool.

Workaround: Link to external file/folder in order to bring them into the workspace for comparison. Can use drag-and-drop with "link files" option on Windows. But this workaround is not intuitive at all.
Comment 1 Martin Oberhuber CLA 2011-09-07 07:59:53 EDT
Another workaround is to install AnyEdit Tools:
   http://andrei.gmxhome.de/anyedit/index.html
Comment 2 Michael Keppler CLA 2016-05-10 04:28:04 EDT
The functionality is there, but very hard to find from the UI. Select an arbitrary file in the project explorer, then use Ctrl-3 and type "Compare with Other Resource".

This will open a dialog to select resources to compare and you can actually select external files and folders there.