Correctly determine selected resource in multi-page editors
commite79fb01386d432d635f482b7e0d3930426b1ed8a
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 1 Nov 2016 22:16:02 +0000 (1 23:16 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 1 Nov 2016 23:37:39 +0000 (2 00:37 +0100)
tree760fc6bc153bb7d6ce5e4ea7b9acaf24c4a5cc50
parent0c8bb74ad5ec020424f50af0b6dd049863d33e91
Correctly determine selected resource in multi-page editors

SelectionUtils.getSelection() must in this case use the IEditorInput of
the currently active nested text editor, if any.

Bug: 506858
Change-Id: I3f050e7f6d1823bc3f874bd84d54a2a43b973418
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/selection/SelectionUtils.java