Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-08-14 12:38:44 +0000
committerTobias Schwarz2013-08-14 12:38:44 +0000
commitc0c1753feacb7c234efecc20422a848a524d58b9 (patch)
tree9ca0d2cf60c085981ed6917f25c714e4234f0235 /target_explorer
parent6667513805082cb40b15d4b45194617e29b76a53 (diff)
downloadorg.eclipse.tcf-c0c1753feacb7c234efecc20422a848a524d58b9.tar.gz
org.eclipse.tcf-c0c1753feacb7c234efecc20422a848a524d58b9.tar.xz
org.eclipse.tcf-c0c1753feacb7c234efecc20422a848a524d58b9.zip
Target Explorer: add possibility to remove open context menu entry
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml32
1 files changed, 25 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
index f31c2a2fb..7ff3f2f38 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
@@ -336,14 +336,28 @@
label="%command.open.label"
mnemonic="%command.open.mnemonic"
tooltip="%command.openroperties.tooltip">
- <visibleWhen>
- <with variable="selection">
- <count value="1"/>
- <iterate operator="and" ifEmpty="false">
+ <visibleWhen>
+ <with variable="selection">
+ <count value="1"/>
+ <iterate operator="and" ifEmpty="false">
+ <and>
<test property="org.eclipse.tcf.te.ui.views.hasApplicableEditorBindings" value="true"/>
- </iterate>
- </with>
- </visibleWhen>
+ <or>
+ <not>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
+ args="org.eclipse.tcf.te.ui.views.View.menu.open"
+ value="true"/>
+ </or>
+ </and>
+ </iterate>
+ </with>
+ </visibleWhen>
</command>
</menuContribution>
@@ -613,6 +627,10 @@
<extension point="org.eclipse.ui.commandImages">
<image
+ commandId="org.eclipse.tcf.te.ui.views.command.ShowInProperties"
+ icon="icons/eview16/prop_ps.gif">
+ </image>
+ <image
commandId="org.eclipse.tcf.te.ui.command.showIn.systemManagement"
icon="icons/eview16/targets_view.gif">
</image>

Back to the top