<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
- <extension
- id="org.eclipse.linuxtools.lttng2.ui.perspective"
- point="org.eclipse.ui.perspectives">
- <perspective
- class="org.eclipse.linuxtools.internal.lttng2.ui.views.PerspectiveFactory"
- icon="icons/obj16/garland16.png"
- id="org.eclipse.linuxtools.lttng2.ui.perspective"
- name="%perspective.category.name">
- </perspective>
- </extension>
<extension
id="org.eclipse.linuxtools.lttng2.ui.views"
point="org.eclipse.ui.views">
name="%commands.control.calibrate">
</command>
+ <command
+ categoryId="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.category"
+ description="%commands.control.snapshot.description"
+ id="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.snapshot"
+ name="%commands.control.snapshot">
+ </command>
+
</extension>
<extension
point="org.eclipse.ui.menus">
name="org.eclipse.linuxtools.internal.lttng2.ui.views.control.toolbar.separator2"
visible="true">
</separator>
+ <command
+ commandId="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.snapshot"
+ icon="icons/elcl16/snapshot.gif"
+ label="%commands.control.snapshot"
+ style="push">
+ </command>
+ <separator
+ name="org.eclipse.linuxtools.internal.lttng2.ui.views.control.toolbar.separator3"
+ visible="true">
+ </separator>
<command
commandId="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.import"
icon="icons/elcl16/import_trace.gif"
</visibleWhen>
</command>
+ <command
+ commandId="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.snapshot"
+ icon="icons/elcl16/snapshot.gif"
+ label="%commands.control.snapshot"
+ style="push">
+ <visibleWhen
+ checkEnabled="false">
+ <with
+ variable="activeMenuSelection">
+ <and>
+ <iterate
+ operator="or">
+ <instanceof
+ value="org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent">
+ </instanceof>
+ </iterate>
+ <count
+ value="1">
+ </count>
+ </and>
+ </with>
+ </visibleWhen>
+ </command>
+
</menuContribution>
</extension>
</activeWhen>
</handler>
+ <handler
+ class="org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.SnaphshotHandler"
+ commandId="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.snapshot">
+ <activeWhen>
+ <with
+ variable="selection">
+ <iterate
+ operator="or">
+ <instanceof
+ value="org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent">
+ </instanceof>
+ </iterate>
+ </with>
+ </activeWhen>
+ </handler>
+
+
<handler
class="org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.AssignEventHandler"
commandId="org.eclipse.linuxtools.internal.lttng2.ui.commands.control.assign.event">