Add "Stashes" menu to Team context menu and toolbar
commit2ed3cc92e1ed26f15e91383782fd3e0896ae3702
authorRobin Stocker <robin@nibor.org>
Sun, 29 Jun 2014 09:40:59 +0000 (29 19:40 +1000)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 9 Jul 2014 22:00:48 +0000 (10 00:00 +0200)
tree3cb95d654ab2a909f9fb38bc1d735a9ba19f3063
parenta6835a63469175e421914022e3d16a748bcda4d6
Add "Stashes" menu to Team context menu and toolbar

Provides a way to stash changes as well as viewing the existing stashes.

The toolbar icon is for stashing changes (when clicking on the icon),
and shows the menu with the existing stashes when using the pull down.

The existing menu item in the repo view was also replaced by this
submenu.

Looks like this when there are no stashes yet:

* Stashes
  * Stash Changes...
  * -
  * (no stashed changes)

And like this with stashes:

* Stashes
  * Stash Changes...
  * -
  * 0: work on foo
  * 1: try fixing bar

Bug: 383794
Bug: 420936
Change-Id: I70a9dba03d569ade9adde49d0ccc09e96f72c237
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
12 files changed:
org.eclipse.egit.ui/plugin.properties
org.eclipse.egit.ui/plugin.xml
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/ActionCommands.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/RepositoryAction.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/RepositoryActionHandler.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/StashCreateHandler.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/StashToolbarAction.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/StashesMenu.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CheckoutConflictDialog.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/StashCreateCommand.java [deleted file]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties