Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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