diff options
author | Mathias Kinzler | 2010-07-28 16:05:31 +0000 |
---|---|---|
committer | Stefan Lay | 2010-08-02 11:56:22 +0000 |
commit | ccefd0f7fec89c4340eb0525708eedf8f1df9428 (patch) | |
tree | 77897e1d222be3762caba3e2d03f612c6dc8ce8d /org.eclipse.egit.ui/plugin.xml | |
parent | e88f9e6f182d99d2aa0e8678fdc0a2a637af12d9 (diff) | |
download | egit-ccefd0f7fec89c4340eb0525708eedf8f1df9428.tar.gz egit-ccefd0f7fec89c4340eb0525708eedf8f1df9428.tar.xz egit-ccefd0f7fec89c4340eb0525708eedf8f1df9428.zip |
Allow to check out a commit from the history view
Bug: 320471
Change-Id: Ibd922881d4e6f8bb408a06177faab74f254049b7
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui/plugin.xml')
-rw-r--r-- | org.eclipse.egit.ui/plugin.xml | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/plugin.xml b/org.eclipse.egit.ui/plugin.xml index 64a76e90ce..dc4ea32995 100644 --- a/org.eclipse.egit.ui/plugin.xml +++ b/org.eclipse.egit.ui/plugin.xml @@ -499,6 +499,7 @@ </actionSet> </extension> <extension + name="The shared commands" point="org.eclipse.ui.commands"> <command defaultHandler="org.eclipse.egit.ui.internal.commands.ShareSingleProjectCommand" @@ -512,6 +513,10 @@ values="org.eclipse.egit.ui.internal.commands.ProjectNameParameterValues"> </commandParameter> </command> + <command + id="org.eclipse.egit.ui.CheckoutCommand" + name="%CheckoutCommand"> + </command> </extension> <extension point="org.eclipse.ui.views"> @@ -699,7 +704,7 @@ </visibleWhen> </command> <command - commandId="org.eclipse.egit.ui.RepositoriesViewCheckout" + commandId="org.eclipse.egit.ui.CheckoutCommand" style="push"> <visibleWhen checkEnabled="false"> @@ -1231,6 +1236,7 @@ </menuContribution> </extension> <extension + name="The commands for the repositories view" point="org.eclipse.ui.commands"> <command id="org.eclipse.egit.ui.RepositoriesViewAddRepository" @@ -1553,4 +1559,43 @@ name="%ShowRepositoryAction_label"> </command> </extension> + <extension + name="The handlers for shared commands" + point="org.eclipse.ui.handlers"> + <handler + commandId="org.eclipse.egit.ui.CheckoutCommand"> + <class + class="org.eclipse.egit.ui.internal.repository.tree.command.CheckoutCommand"> + </class> + <activeWhen> + <and> + <count + value="1"> + </count> + <iterate> + <instanceof + value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"> + </instanceof> + </iterate> + </and> + </activeWhen> + </handler> + <handler + commandId="org.eclipse.egit.ui.CheckoutCommand"> + <class + class="org.eclipse.egit.ui.internal.history.command.CheckoutHandler"></class> + <activeWhen> + <and> + <count + value="1"> + </count> + <iterate> + <instanceof + value="org.eclipse.egit.ui.internal.history.SWTCommit"> + </instanceof> + </iterate> + </and> + </activeWhen> + </handler> + </extension> </plugin> |