[stagingView] Only offer actions applicable for all items
commita0eb87cbb5fe3479918a1c90e187425b12467c0c
authorRobin Stocker <robin@nibor.org>
Sun, 15 Jul 2012 23:34:24 +0000 (16 01:34 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 15 Jul 2012 23:34:24 +0000 (16 01:34 +0200)
tree9929b0e8769d1c633d280235c00f3e6fa6acec43
parent9725ccd197e1b5a2bed090df1920e5daf32b65ef
[stagingView] Only offer actions applicable for all items

The action is run on all selected staging entries. So the available
actions for the whole selection should be the intersection of the
available actions of each entry.

This is a preconditions for the next change which will introduce a
Delete action, which should only be offered if all selected entries can
be deleted.

Bug: 384609
Change-Id: Ic0941b07f30af0c62ebc4860bf993ea51fa8c046
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingEntry.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java