tmf: remove trace copy menu from FiltersView menu (bug 458580)
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Thu, 29 Jan 2015 12:01:41 +0000 (07:01 -0500)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Wed, 4 Feb 2015 23:21:24 +0000 (18:21 -0500)
Change-Id: I85b559fa17f0a5f4adf102dfc0db107af85bfc2d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/40614
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
org.eclipse.tracecompass.tmf.ui/plugin.xml

index 6af7ce973faf2364d090640e49e643c6fadf706c..bf2509e5a4c436dd3b9e5e96dd02cdb5201821b0 100644 (file)
                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.tracecompass.tmf.ui.project.model.TmfTraceElement">
+                        </instanceof>
+                        <instanceof
+                              value="org.eclipse.tracecompass.tmf.ui.project.model.TmfExperimentElement">
+                        </instanceof>
+                     </or>
+                  </iterate>
+               </and>
             </visibleWhen>
          </command>
          <command
             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>
             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>
This page took 0.027372 seconds and 5 git commands to generate.