tmf: Import and Export trace package
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / plugin.xml
index 229929ce811bc23158e57b89d6ee357b373e6f5c..9876d7291e57fe5ad669691d7f4fbef4f8925eca 100644 (file)
             id="org.eclipse.linuxtools.tmf.ui.batch_import"
             name="%project.import.wizard.name.batch">
       </wizard>
+      <wizard
+            category="org.eclipse.linuxtools.tmf.import.category"
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.wizards.tracepkg.importexport.ImportTracePackageWizard"
+            icon="icons/etool16/import.gif"
+            id="org.eclipse.linuxtools.tmf.ui.trace.import.package.wizard"
+            name="%project.import.wizard.name.tracepkg">
+      </wizard>
    </extension>
    <extension
          id="org.eclipse.linuxtools.tmf.project.nature"
                </with>
             </visibleWhen>
          </command>
+         <command
+               commandId="org.eclipse.linuxtools.tmf.ui.command.exporttracepkg"
+               icon="icons/etool16/export.gif"
+               label="%command.export_trace_package"
+               mnemonic="%command.export_trace_package.mnemonic"
+               style="push"
+               tooltip="%command.export_trace_package.description">
+            <visibleWhen
+                  checkEnabled="false">
+               <with
+                     variable="selection">
+                  <and>
+                     <count
+                           value="1">
+                     </count>
+                     <iterate
+                           ifEmpty="false"
+                           operator="and">
+                        <instanceof
+                              value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement">
+                        </instanceof>
+                     </iterate>
+                  </and>
+               </with>
+            </visibleWhen>
+         </command>
+        <command
+              commandId="org.eclipse.linuxtools.tmf.ui.command.importtracepkg"
+              label="%command.import_trace_package"
+              mnemonic="%command.import_trace_package.mnemonic"
+              style="push"
+              tooltip="%command.import_trace_package.description">
+            <visibleWhen
+                  checkEnabled="false">
+               <with
+                     variable="selection">
+                  <and>
+                     <count
+                           value="1">
+                     </count>
+                     <iterate
+                           ifEmpty="false"
+                           operator="and">
+                        <instanceof
+                              value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceFolder">
+                        </instanceof>
+                     </iterate>
+                  </and>
+               </with>
+            </visibleWhen>
+         </command>
          <separator
                name="org.eclipse.linuxtools.tmf.ui.separator3"
                visible="true">
             id="org.eclipse.linuxtools.tmf.ui.command.delete_suppl_files"
             name="%command.delete_suppl_files">
       </command>
+      <command
+            categoryId="org.eclipse.linuxtools.tmf.ui.commands.category"
+            id="org.eclipse.linuxtools.tmf.ui.command.exporttracepkg"
+            name="%command.export_trace_package">
+      </command>
+      <command
+            categoryId="org.eclipse.linuxtools.tmf.ui.commands.category"
+            id="org.eclipse.linuxtools.tmf.ui.command.importtracepkg"
+            name="%command.import_trace_package">
+      </command>
       <command
             categoryId="org.eclipse.linuxtools.tmf.ui.commands.category"
             description="%command.select_traces.description"
             </and>
          </activeWhen>
       </handler>
+      <handler
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.wizards.tracepkg.importexport.ExportTracePackageHandler"
+            commandId="org.eclipse.linuxtools.tmf.ui.command.exporttracepkg">
+         <activeWhen>
+            <and>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement">
+                  </instanceof>
+               </iterate>
+            </and>
+         </activeWhen>
+      </handler>
+      <handler
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.wizards.tracepkg.importexport.ImportTracePackageHandler"
+            commandId="org.eclipse.linuxtools.tmf.ui.command.importtracepkg">
+         <activeWhen>
+            <and>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceFolder">
+                  </instanceof>
+               </iterate>
+            </and>
+         </activeWhen>
+      </handler>
       <handler
             class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.DeleteExperimentSupplementaryFilesHandler"
             commandId="org.eclipse.linuxtools.tmf.ui.command.delete_suppl_files">
          </selectionEnablement>
       </linkHelper>
    </extension>
-
+   <extension
+         point="org.eclipse.ui.exportWizards">
+      <wizard
+            category="org.eclipse.linuxtools.tmf.export.category"
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.wizards.tracepkg.importexport.ExportTracePackageWizard"
+            icon="icons/etool16/export.gif"
+            id="org.eclipse.linuxtools.tmf.ui.trace.export.package.wizard"
+            name="%project.export.wizard.name.tracepkg">
+      </wizard>
+      <category
+            id="org.eclipse.linuxtools.tmf.export.category"
+            name="%project.new.category.name">
+      </category>
+   </extension>
 </plugin>
This page took 0.026345 seconds and 5 git commands to generate.