tmf: Add command to manually refresh traces
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / plugin.xml
index 1328aa295a15356e12d16f565f0cc4178b52bd30..b45d65a141e2304aaac05ddfd2b23e50d9caf43e 100644 (file)
                </with>
             </visibleWhen>
          </command>
+         <command
+              commandId="org.eclipse.ui.file.refresh"
+              label="%commands.sync.refresh.tracecontent"
+              style="push">
+           <visibleWhen
+                 checkEnabled="false">
+               <or>
+                  <iterate
+                        ifEmpty="false"
+                        operator="and">
+                     <or>
+                        <and>
+                           <instanceof
+                                 value="org.eclipse.tracecompass.tmf.ui.project.model.TmfTraceElement">
+                           </instanceof>
+                           <not>
+                              <test
+                                    forcePluginActivation="true"
+                                    property="org.eclipse.linuxtools.tmf.ui.isExperimentTrace">
+                              </test>
+                           </not>
+                        </and>
+                     </or>
+                  </iterate>
+                  <with
+                      variable="activePart">
+                     <instanceof
+                           value="org.eclipse.tracecompass.tmf.ui.editors.TmfEventsEditor">
+                     </instanceof>
+                  </with>
+               </or>
+           </visibleWhen>
+        </command>
       </menuContribution>
       <menuContribution
             allPopups="false"
             </with>
          </activeWhen>
       </handler>
+      <handler
+            class="org.eclipse.tracecompass.internal.tmf.ui.project.handlers.RefreshTraceContentHandler"
+            commandId="org.eclipse.ui.file.refresh">
+         <activeWhen>
+            <or>
+               <iterate
+                     ifEmpty="false"
+                     operator="and">
+                  <or>
+                     <and>
+                        <instanceof
+                              value="org.eclipse.tracecompass.tmf.ui.project.model.TmfTraceElement">
+                        </instanceof>
+                        <not>
+                           <test
+                                 forcePluginActivation="true"
+                                 property="org.eclipse.linuxtools.tmf.ui.isExperimentTrace">
+                           </test>
+                        </not>
+                     </and>
+                  </or>
+               </iterate>
+               <with
+                   variable="activePart">
+                  <instanceof
+                        value="org.eclipse.tracecompass.tmf.ui.editors.TmfEventsEditor">
+                  </instanceof>
+               </with>
+            </or>
+         </activeWhen>
+      </handler>
    </extension>
    <extension point="org.eclipse.ui.bindings">
       <key
This page took 0.024692 seconds and 5 git commands to generate.