TMF: Introduce a framework to hook trace analysis modules/plugins
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / plugin.xml
index 7007958fef6034b841708702e8ff3cede6942873..e57b56be64a1a0e70d0c2a82cfbab2ab4891b4d9 100644 (file)
             id="org.eclipse.linuxtools.tmf.ui.views.timechart"
             name="%timechart.view.name"
             restorable="true">
-      </view> 
+      </view>
       <view
             allowMultiple="false"
             category="org.eclipse.linuxtools.tmf.ui.views.category"
-            class="org.eclipse.linuxtools.tmf.ui.views.environment.TmfEnvironmentView"
+            class="org.eclipse.linuxtools.tmf.ui.views.statesystem.TmfStateSystemExplorer"
             icon="icons/eview16/events_view.gif"
-            id="org.eclipse.linuxtools.tmf.ui.views.environment"
-            name="%environment.view.name"
+            id="org.eclipse.linuxtools.tmf.ui.views.ssvisualizer"
+            name="%ssvisualizer.view.name"
             restorable="true">
       </view>
       <view
             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>
+      <view
+            allowMultiple="false"
+            category="org.eclipse.linuxtools.tmf.ui.views.category"
+            class="org.eclipse.linuxtools.tmf.ui.views.synchronization.TmfSynchronizationView"
+            icon="icons/eview16/synced.gif"
+            id="org.eclipse.linuxtools.tmf.ui.views.synchronization"
+            name="%synchronization.view.name"
+            restorable="true">
+      </view>
    </extension>
    <extension
          point="org.eclipse.ui.editors">
       </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"
                menuGroupId="org.eclipse.linuxtools.tmf.ui.views.ui.wizards.menuGroupId"
                type="new"
                wizardId="org.eclipse.linuxtools.tmf.ui.views.ui.wizards.newProject">
-            <enablement></enablement>
+               <enablement>
+                  <with variable="activeWorkbenchWindow.activePerspective">
+                     <equals
+                          value="org.eclipse.linuxtools.tmf.ui.perspective">
+                     </equals>
+                  </with>
+               </enablement>
          </commonWizard>
       </navigatorContent>
    </extension>
             <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>
    <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
             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
          <command
                </with>
             </visibleWhen>
          </command>
+         <command
+               commandId="org.eclipse.linuxtools.tmf.ui.batch_import"
+               label="%command.batch_import"
+               mnemonic="%command.batch_import.mnemonic"
+               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>
          <separator
                name="org.eclipse.linuxtools.tmf.ui.separator1"
                visible="true">
                         <instanceof
                               value="org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement">
                         </instanceof>
+                        <instanceof
+                              value="org.eclipse.linuxtools.tmf.ui.project.model.TmfAnalysisOutputElement">
+                        </instanceof>
                      </or>
                   </iterate>
                </with>
                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.synchronize_traces"
+               icon="icons/obj16/add_obj.gif"
+               label="%command.synchronize_traces"
+               mnemonic="%command.synchronize_traces.mnemonic"
+               style="push"
+               tooltip="%commands.synchronize_traces.description">
+            <visibleWhen
+                  checkEnabled="false">
+               <with
+                     variable="selection">
+                  <count
+                        value="1">
+                  </count>
+                  <iterate
+                        ifEmpty="false"
+                        operator="and">
+                     <instanceof
+                           value="org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement">
+                     </instanceof>
+                  </iterate>
+               </with>
+            </visibleWhen>
+         </command>
          <separator
                name="org.eclipse.linuxtools.tmf.ui.separator5"
                visible="true">
                </with>
             </visibleWhen>
          </command>
+         <command
+               commandId="org.eclipse.linuxtools.tmf.ui.command.analysis_help"
+               icon="icons/dlcl16/open.gif"
+               label="%command.analysis_help"
+               mnemonic="%command.analysis_help.mnemonic"
+               style="push"
+               tooltip="%command.analysis_help.description">
+            <visibleWhen
+                  checkEnabled="false">
+               <with
+                     variable="selection">
+                  <count
+                        value="1">
+                  </count>
+                  <iterate
+                        ifEmpty="false"
+                        operator="and">
+                     <instanceof
+                           value="org.eclipse.linuxtools.tmf.ui.project.model.TmfAnalysisElement">
+                     </instanceof>
+                  </iterate>
+               </with>
+            </visibleWhen>
+         </command>
       </menuContribution>
    </extension>
    <extension
             id="org.eclipse.linuxtools.tmf.ui.command.new_experiment"
             name="%command.new_experiment">
       </command>
+      <command
+            categoryId="org.eclipse.linuxtools.tmf.ui.commands.category"
+            description="%command.analysis_help.description"
+            id="org.eclipse.linuxtools.tmf.ui.command.analysis_help"
+            name="%command.analysis_help">
+      </command>
       <command
             categoryId="org.eclipse.linuxtools.tmf.ui.commands.category"
             description="%command.select_trace_type.description"
             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.synchronize_traces.description"
+            id="org.eclipse.linuxtools.tmf.ui.command.synchronize_traces"
+            name="%command.synchronize_traces">
+      </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.OpenAnalysisHelpHandler"
+            commandId="org.eclipse.linuxtools.tmf.ui.command.analysis_help">
+         <activeWhen>
+            <and>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.project.model.TmfAnalysisElement">
+                  </instanceof>
+               </iterate>
+            </and>
+         </activeWhen>
+      </handler>
+      <handler
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.OpenAnalysisOutputHandler"
+            commandId="org.eclipse.ui.navigate.openResource">
+         <activeWhen>
+            <and>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.project.model.TmfAnalysisOutputElement">
+                  </instanceof>
+               </iterate>
+            </and>
+         </activeWhen>
+      </handler>
       <handler
             class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.CopyTraceHandler"
             commandId="org.eclipse.ui.edit.copy">
             </and>
          </activeWhen>
       </handler>
+      <handler
+            class="org.eclipse.linuxtools.internal.tmf.ui.project.handlers.SynchronizeTracesHandler"
+            commandId="org.eclipse.linuxtools.tmf.ui.command.synchronize_traces">
+         <activeWhen>
+            <and>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement">
+                  </instanceof>
+               </iterate>
+            </and>
+         </activeWhen>
+      </handler>
       <handler
             class="org.eclipse.linuxtools.internal.tmf.ui.commands.ManageCustomParsersCommandHandler"
             commandId="org.eclipse.linuxtools.tmf.ui.command.managecustomparsers">
             class="org.eclipse.linuxtools.internal.tmf.ui.editors.handlers.AddBookmarkHandler"
             commandId="org.eclipse.ui.edit.addBookmark">
          <activeWhen>
-            <with
-                  variable="activeEditor">
-               <instanceof
-                     value="org.eclipse.linuxtools.tmf.ui.editors.TmfEventsEditor">
-               </instanceof>
-            </with>
+            <and>
+               <with
+                     variable="activePart">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.ui.editors.TmfEventsEditor">
+                  </instanceof>
+               </with>
+               <count
+                     value="1">
+               </count>
+               <iterate
+                     ifEmpty="false"
+                     operator="and">
+                  <instanceof
+                        value="org.eclipse.linuxtools.tmf.core.event.ITmfEvent">
+                  </instanceof>
+               </iterate>
+            </and>
+         </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>
             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.031455 seconds and 5 git commands to generate.