Consider active editor input only if active part is an editor
commit47213bad0d4e033734e797d090386d574300a3ac
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 13 Nov 2016 15:09:57 +0000 (13 16:09 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sun, 13 Nov 2016 15:09:57 +0000 (13 16:09 +0100)
tree2a02d556a26eb8bc7e9f8b24c1bbd3624c5b3e93
parent77d731f6a14499ba3db3c7ee67ad4b908cd8d7ee
Consider active editor input only if active part is an editor

The active editor input may be set even if the active part is not an
editor. Ensure that EGit considers text selections and the active
editor input only if the active part is indeed an editor. Otherwise
EGit menu contributions may appear in too many places.

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