Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Nittka2019-10-24 21:00:48 +0000
committerAlexander Nittka2019-10-25 17:01:37 +0000
commit236c33d2dabc3ff1314ec66f22a6755000de2842 (patch)
tree223f0eeba21d24eb329206764e535ca09426a9b0 /org.eclipse.egit.ui/plugin.xml
parent6f2fa83e92025dcc690799b472956caa8b56a327 (diff)
downloadegit-236c33d2dabc3ff1314ec66f22a6755000de2842.tar.gz
egit-236c33d2dabc3ff1314ec66f22a6755000de2842.tar.xz
egit-236c33d2dabc3ff1314ec66f22a6755000de2842.zip
[repo view] Do not allow removing submodules from view
Previously the "Remove Repository from View" command was shown in the context menu for submodules, but executing it had no effect. A guard is added preventing the handler from being active. Change-Id: Ib47cd0621ba8666f4e314aba27f8130c1ad874aa Signed-off-by: Alexander Nittka <alex@nittka.de>
Diffstat (limited to 'org.eclipse.egit.ui/plugin.xml')
-rw-r--r--org.eclipse.egit.ui/plugin.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/plugin.xml b/org.eclipse.egit.ui/plugin.xml
index f2de7a7786..e7444bad2a 100644
--- a/org.eclipse.egit.ui/plugin.xml
+++ b/org.eclipse.egit.ui/plugin.xml
@@ -2446,8 +2446,11 @@
class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveCommand">
</class>
<activeWhen>
- <iterate ifEmpty="false">
+ <iterate
+ ifEmpty="false"
+ operator="and">
<instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
+ <test property="GitRepository.isSubmodule" value="false" />
</iterate>
</activeWhen>
</handler>

Back to the top