Use current selection if menu selection is not available
commit39a7ccb2ee6e94c85ff6c9e57217f2c0ecc00497
authorJens Baumgart <jens.baumgart@sap.com>
Tue, 6 Mar 2012 22:16:45 +0000 (6 23:16 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 6 Mar 2012 22:16:45 +0000 (6 23:16 +0100)
tree5afb616679cb2915c6d1755fe6b0dcdc717bc859
parent5b6af1c141e6aed0c24cadbaeb9a3f76f4deb6bb
Use current selection if menu selection is not available

Rebase, Fetch and Push command now use the current selection if the menu
selection is not available. Other handlers in EGit behave in the same
way. Furthermore this is a prerequisite for using SWTBotMenu.click in
the UI tests instead of using the ContextMenuHelper workaround.

Change-Id: Ic150ba60db92f9a4645ddde1f1f257397d73f3a5
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/shared/AbstractRebaseCommandHandler.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/shared/RebaseCurrentRefCommand.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/FetchConfiguredRemoteCommand.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/PushConfiguredRemoteCommand.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/RepositoriesViewCommandHandler.java