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+LEFTandALT+RIGHTto 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.