Compare sources in eclipse
Very often I encounter situation where I need to see or manually compare two eclipse sources. It can be a situation when I extending some class and looking at current implementation of superclass and writing similar implementation in subclass. Here are solutions come in mind with time:
- Just copy prototype class in another file and edit it in place with commenting/uncommenting. This solution seems a bit dirty to me and causes hidden "copy-paste" bugs.
- Open prototype class in another editor and make it "always visible". It's a tricky.
- Have state where prototype and actual classes accesed sequentially, so we can using Back-Forward hotkeys ALT+LEFT and ALT+RIGHT to switch between them, but the problem left - we have only one active screen at time.
Is there a more clever way to get functionality that I need?
I think that @Nos explains the more accurate solution, but if you need to have two active editors at the same time... You only need to open the both files, and then "detach" one of the tabs, or move it to another editor.
To move a tab to other editor window, you only need to click on the tab title and drag it to another position. It will automatically created another editor window.
you can click on source file tab and right click-> then select new editor. you will get duplicate tab there. after that click on that and drag to any direction and you will get two different frames for file