diff options
author | Bernd Hufmann | 2015-01-27 19:22:53 +0000 |
---|---|---|
committer | Bernd Hufmann | 2015-01-28 22:51:12 +0000 |
commit | 7f6df67cf10b27bc1c4cb755fa6db638fbdd3479 (patch) | |
tree | 24238dbbf6c83019b523aa269a67efcc8993ddb2 | |
parent | df57b4ce721464ed9f89c72c5ab89831a62c7757 (diff) | |
download | org.eclipse.linuxtools-7f6df67cf10b27bc1c4cb755fa6db638fbdd3479.tar.gz org.eclipse.linuxtools-7f6df67cf10b27bc1c4cb755fa6db638fbdd3479.tar.xz org.eclipse.linuxtools-7f6df67cf10b27bc1c4cb755fa6db638fbdd3479.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>
-rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.ui/plugin.xml | 29 |
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> |