Tmf: Batch Trace Import
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / plugin.xml
index ab4d7cb590bcdaf32fae9b28776fc9646d4ac0fd..5fd3f9d1f1755ed034fbe4a90f2b89c73a7c883f 100644 (file)
             id="org.eclipse.linuxtools.tmf.ui.views.category"
             name="%views.category.name">
       </category>
-      <view
-            allowMultiple="false"
-            category="org.eclipse.linuxtools.tmf.ui.views.category"
-            class="org.eclipse.linuxtools.tmf.ui.views.events.TmfEventsView"
-            icon="icons/eview16/events_view.gif"
-            id="org.eclipse.linuxtools.tmf.ui.views.events"
-            name="%events.view.name"
-            restorable="true">
-      </view>
       <view
             category="org.eclipse.linuxtools.tmf.ui.views.category"
             class="org.eclipse.linuxtools.tmf.ui.views.timechart.TimeChartView"
             name="%environment.view.name"
             restorable="true">
       </view>
+      <view
+            allowMultiple="false"
+            category="org.eclipse.linuxtools.tmf.ui.views.category"
+            class="org.eclipse.linuxtools.tmf.ui.views.statesystem.TmfStateSystemExplorer"
+            icon="icons/eview16/events_view.gif"
+            id="org.eclipse.linuxtools.tmf.ui.views.ssvisualizer"
+            name="%ssvisualizer.view.name"
+            restorable="true">
+      </view>
       <view
             allowMultiple="false"
             category="org.eclipse.linuxtools.tmf.ui.views.category"
             name="%histogram.view.name"
             restorable="true">
       </view>
+      <view
+            category="org.eclipse.linuxtools.tmf.ui.views.category"
+            class="org.eclipse.linuxtools.tmf.ui.views.callstack.CallStackView"
+            icon="icons/eview16/callstack_view.gif"
+            id="org.eclipse.linuxtools.tmf.ui.views.callstack"
+            name="%callstack.view.name"
+            restorable="true">
+      </view>
    </extension>
    <extension
          point="org.eclipse.ui.editors">
                contentTypeId="org.eclipse.linuxtools.tmf.ui.content-type.trace">
          </contentTypeBinding>
       </editor>
-      <editor
-            class="org.eclipse.linuxtools.tmf.ui.editors.EventsViewEditor"
-            default="false"
-            icon="icons/eview16/events_view.gif"
-            id="org.eclipse.linuxtools.tmf.ui.editors.eventsView"
-            name="%eventsview.editor.name">
-         <contentTypeBinding
-               contentTypeId="org.eclipse.linuxtools.tmf.ui.content-type.trace">
-         </contentTypeBinding>
-      </editor>
    </extension>
    <extension
          point="org.eclipse.ui.newWizards">
       </category>
       <wizard
             category="org.eclipse.linuxtools.tmf.import.category"
-            class="org.eclipse.linuxtools.tmf.ui.project.wizards.ImportTraceWizard"
+            class="org.eclipse.linuxtools.tmf.ui.project.wizards.importtrace.ImportTraceWizard"
             icon="icons/etool16/import.gif"
             id="org.eclipse.linuxtools.tmf.ui.trace.import.wizard"
             name="%project.import.wizard.name">
       </wizard>
+      <wizard
+            category="org.eclipse.linuxtools.tmf.import.category"
+            class="org.eclipse.linuxtools.tmf.ui.project.wizards.importtrace.BatchImportTraceWizard"
+            icon="icons/etool16/import.gif"
+            id="org.eclipse.linuxtools.tmf.ui.batch_import"
+            name="%project.import.wizard.name.batch">
+      </wizard>
    </extension>
    <extension
          id="org.eclipse.linuxtools.tmf.project.nature"
             <contentExtension
                   pattern="org.eclipse.ui.navigator.resources.filters.*">
             </contentExtension>
+            <contentExtension
+                  pattern="org.eclipse.linuxtools.internal.tmf.ui.project.model.TmfEditorLinkHelper">
+            </contentExtension>
          </includes>
       </viewerContentBinding>
    </extension>
    <extension
          point="org.eclipse.ui.menus">
       <menuContribution
-            locationURI="menu:org.eclipse.ui.navigator.ProjectExplorer">
-         <command
-               commandId="org.eclipse.linuxtools.tmf.ui.command.managecustomparsers"
-               id="org.eclipse.linuxtools.tmf.ui.menu.managecustomparsers"
-               style="push">
-         </command>
-      </menuContribution>
-      <menuContribution
-            allPopups="false"
-            locationURI="toolbar:org.eclipse.ui.navigator.ProjectExplorer">
+            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
          <command
-               commandId="org.eclipse.linuxtools.tmf.ui.command.clear_views"
-               icon="icons/etool16/clear.gif"
-               label="%command.clear_views"
-               mnemonic="%command.clear_views.mnemonic"
+               commandId="org.eclipse.ui.file.import"
+               label="%command.import"
+               mnemonic="%command.import.mnemonic"
                style="push">
             <visibleWhen
                   checkEnabled="false">
                         value="1">
                   </count>
                   <iterate
-                        ifEmpty="false"
                         operator="and">
-                     <or>
-                        <and>
-                           <instanceof
-                                 value="org.eclipse.core.resources.IProject">
-                           </instanceof>
-                           <test
-                                 property="org.eclipse.core.resources.projectNature"
-                                 value="org.eclipse.linuxtools.tmf.project.nature">
-                           </test>
-                        </and>
-                        <instanceof
-                              value="org.eclipse.linuxtools.tmf.ui.project.model.ITmfProjectModelElement">
-                        </instanceof>
-                     </or>
+                     <instanceof
+                           value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceFolder">
+                     </instanceof>
                   </iterate>
                </with>
             </visibleWhen>
          </command>
-      </menuContribution>
-      <menuContribution
-            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
          <command
-               commandId="org.eclipse.ui.file.import"
-               label="%command.import"
-               mnemonic="%command.import.mnemonic"
+               commandId="org.eclipse.linuxtools.tmf.ui.batch_import"
+               label="%command.batch_import"
+               mnemonic="%command.batch_import.mnemonic"
                style="push">
             <visibleWhen
                   checkEnabled="false">
                name="org.eclipse.linuxtools.tmf.ui.separator3"
                visible="true">
          </separator>
+         <command
+               commandId="org.eclipse.linuxtools.tmf.ui.command.managecustomparsers"
+               icon="icons/etool16/customparser_wizard.gif"
+               id="org.eclipse.linuxtools.tmf.ui.menu.managecustomparsers"
+               style="push">
+            <visibleWhen
+                  checkEnabled="false">
+               <with
+                     variable="selection">
+                  <count
+                        value="1">
+                  </count>
+                  <iterate
+                        operator="and">
+                     <instanceof
+                           value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceFolder">
+                     </instanceof>
+                  </iterate>
+               </with>
+            </visibleWhen>
+         </command>
          <menu
                label="%command.select_trace_type"
                mnemonic="%command.select_trace_type.mnemonic"
                   class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.SelectTraceTypeContributionItem"
                   id="org.eclipse.linuxtools.tmf.ui.command.select_trace_type.dynamic">
             </dynamic>
+            <separator
+                  name="org.eclipse.linuxtools.tmf.ui.separator6"
+                  visible="true">
+            </separator>
+            <command
+                  commandId="org.eclipse.linuxtools.tmf.ui.command.managecustomparsers"
+                  icon="icons/etool16/customparser_wizard.gif"
+                  style="push">
+            </command>
             <visibleWhen
                   checkEnabled="false">
                <with
                </with>
             </visibleWhen>
          </command>
-         <command
-               commandId="org.eclipse.linuxtools.tmf.ui.command.clear_views"
-               icon="icons/etool16/clear.gif"
-               label="%command.clear_views"
-               mnemonic="%command.clear_views.mnemonic"
-               style="push">
-            <visibleWhen
-                  checkEnabled="false">
-               <with
-                     variable="selection">
-                  <count
-                        value="1">
-                  </count>
-                  <iterate
-                        ifEmpty="false"
-                        operator="and">
-                     <and>
-                        <instanceof
-                              value="org.eclipse.core.resources.IProject">
-                        </instanceof>
-                        <test
-                              property="org.eclipse.core.resources.projectNature"
-                              value="org.eclipse.linuxtools.tmf.project.nature">
-                        </test>
-                     </and>
-                  </iterate>
-               </with>
-            </visibleWhen>
-         </command>
       </menuContribution>
    </extension>
    <extension
             id="org.eclipse.linuxtools.tmf.ui.command.select_traces"
             name="%command.select_traces">
       </command>
-      <command
-            categoryId="org.eclipse.linuxtools.tmf.ui.commands.category"
-            description="%command.clear_views.description"
-            id="org.eclipse.linuxtools.tmf.ui.command.clear_views"
-            name="%command.clear_views">
-      </command>
       <category
             description="%commands.parser.category.description"
             id="org.eclipse.linuxtools.tmf.ui.commands.parser.category"
             id="org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDRight"
             name="%commands.uml2sd.scrollright">
       </command>
+      <command
+            description="%command.batch_import.description"
+            id="org.eclipse.linuxtools.tmf.ui.batch_import"
+            name="%command.batch_import">
+      </command>
    </extension>
    <extension
          point="org.eclipse.ui.handlers">
             </and>
          </activeWhen>
       </handler>
-      <handler
-            class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.ClearViewsHandler"
-            commandId="org.eclipse.linuxtools.tmf.ui.command.clear_views">
-      </handler>
       <handler
             class="org.eclipse.linuxtools.internal.tmf.ui.commands.ManageCustomParsersCommandHandler"
             commandId="org.eclipse.linuxtools.tmf.ui.command.managecustomparsers">
             </with>
          </activeWhen>
       </handler>
+      <handler
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.BatchImportTraceHandler"
+            commandId="org.eclipse.linuxtools.tmf.ui.batch_import">
+         <activeWhen>
+            <and>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     ifEmpty="false"
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceFolder">
+                  </instanceof>
+               </iterate>
+            </and>
+         </activeWhen>
+      </handler>
    </extension>
    <extension point="org.eclipse.ui.bindings">
       <key
             class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.TracePropertyTester"
             id="org.eclipse.linuxtools.tmf.ui.tracePropertyTester"
             namespace="org.eclipse.linuxtools.tmf.ui"
-            properties="isExperimentTrace,hasSupplementaryFiles"
+            properties="isExperimentTrace,hasSupplementaryFiles,traceType"
             type="org.eclipse.linuxtools.tmf.ui.project.model.TmfProjectModelElement">
       </propertyTester>
    </extension>
             trace_type="org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace">
       </type>
    </extension>
+   <extension
+         point="org.eclipse.ui.navigator.linkHelper">
+      <linkHelper
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.model.TmfEditorLinkHelper"
+            id="org.eclipse.linuxtools.internal.tmf.ui.project.model.TmfEditorLinkHelper">
+         <editorInputEnablement>
+             <instanceof value="org.eclipse.ui.IFileEditorInput"/>
+         </editorInputEnablement>
+         <selectionEnablement>
+             <or>
+                <instanceof
+                      value="org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement">
+                </instanceof>
+                <instanceof
+                      value="org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement">
+                </instanceof>
+             </or>
+         </selectionEnablement>
+      </linkHelper>
+   </extension>
 
 </plugin>
This page took 0.027421 seconds and 5 git commands to generate.