Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2015-01-27 19:22:53 +0000
committerBernd Hufmann2015-01-29 16:20:48 +0000
commit730d661d3b52cca26181706c6796178ebb9473b9 (patch)
tree194b4998306c06342b52fd1780622f08a9a284c7
parent4fb214db50a14e14742e77619c9297a17072e75d (diff)
downloadorg.eclipse.linuxtools-730d661d3b52cca26181706c6796178ebb9473b9.tar.gz
org.eclipse.linuxtools-730d661d3b52cca26181706c6796178ebb9473b9.tar.xz
org.eclipse.linuxtools-730d661d3b52cca26181706c6796178ebb9473b9.zip
tmf: remove trace copy menu from FiltersView menu (bug 458580)
Change-Id: I71584b9b2ca43d0676d0a5b243f8b02a984f2d5e Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/40493 Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Patrick Tasse <patrick.tasse@gmail.com> (cherry picked from commit 7f6df67cf10b27bc1c4cb755fa6db638fbdd3479) Reviewed-on: https://git.eclipse.org/r/40581 Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/plugin.xml29
1 files changed, 26 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/plugin.xml b/lttng/org.eclipse.linuxtools.tmf.ui/plugin.xml
index e3ccaf0129..79e9eca3f8 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/plugin.xml
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/plugin.xml
@@ -458,7 +458,30 @@
mnemonic="%command.copy.mnemonic"
style="push">
<visibleWhen
- checkEnabled="true">
+ checkEnabled="false">
+ <and>
+ <with
+ variable="activePart">
+ <instanceof
+ value="org.eclipse.ui.navigator.CommonNavigator">
+ </instanceof>
+ </with>
+ <count
+ value="1">
+ </count>
+ <iterate
+ ifEmpty="false"
+ operator="and">
+ <or>
+ <instanceof
+ value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement">
+ </instanceof>
+ <instanceof
+ value="org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement">
+ </instanceof>
+ </or>
+ </iterate>
+ </and>
</visibleWhen>
</command>
<command
@@ -983,7 +1006,7 @@
allPopups="false"
locationURI="popup:org.eclipse.linuxtools.tmf.ui.views.filter?after=edit">
<command
- commandId="org.eclipse.ui.edit.cut"
+ commandId="org.eclipse.ui.edit.paste"
style="push">
</command>
</menuContribution>
@@ -999,7 +1022,7 @@
allPopups="false"
locationURI="popup:org.eclipse.linuxtools.tmf.ui.views.filter?after=edit">
<command
- commandId="org.eclipse.ui.edit.paste"
+ commandId="org.eclipse.ui.edit.cut"
style="push">
</command>
</menuContribution>

Back to the top