| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (c) 2013 Ericsson. |
| 4 | |
| 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | --> |
| 10 | <?eclipse version="3.4"?> |
| 11 | <plugin> |
| 12 | <extension |
| 13 | point="org.eclipse.ui.perspectives"> |
| 14 | <perspective |
| 15 | class="org.eclipse.tracecompass.internal.gdbtrace.ui.views.GdbPerspectiveFactory" |
| 16 | icon="icons/obj16/gdb_icon16.png" |
| 17 | id="org.eclipse.linuxtools.gdbtrace.perspective" |
| 18 | name="%perspective.name"> |
| 19 | </perspective> |
| 20 | </extension> |
| 21 | <extension |
| 22 | point="org.eclipse.ui.commands"> |
| 23 | <command |
| 24 | description="%commands.project.trace.selectexecutable.description" |
| 25 | id="org.eclipse.linuxtools.gdbtrace.ui.command.project.trace.selectexecutable" |
| 26 | name="%commands.project.trace.selectexecutable"> |
| 27 | </command> |
| 28 | </extension> |
| 29 | <extension |
| 30 | point="org.eclipse.ui.menus"> |
| 31 | <menuContribution |
| 32 | locationURI="popup:org.eclipse.ui.popup.any?after=additions"> |
| 33 | <command |
| 34 | commandId="org.eclipse.linuxtools.gdbtrace.ui.command.project.trace.selectexecutable" |
| 35 | label="%commands.project.trace.selectexecutable" |
| 36 | style="push" |
| 37 | tooltip="%commands.project.trace.selectexecutable.description"> |
| 38 | <visibleWhen |
| 39 | checkEnabled="false"> |
| 40 | <with |
| 41 | variable="selection"> |
| 42 | <iterate |
| 43 | ifEmpty="false" |
| 44 | operator="and"> |
| 45 | <test |
| 46 | property="org.eclipse.linuxtools.tmf.ui.traceType" |
| 47 | value="org.eclipse.linuxtools.gdbtrace.ui.type.gdb"> |
| 48 | </test> |
| 49 | </iterate> |
| 50 | </with> |
| 51 | </visibleWhen> |
| 52 | </command> |
| 53 | </menuContribution> |
| 54 | </extension> |
| 55 | <extension |
| 56 | point="org.eclipse.ui.handlers"> |
| 57 | <handler |
| 58 | class="org.eclipse.tracecompass.internal.gdbtrace.ui.views.project.handlers.SelectTraceExecutableHandler" |
| 59 | commandId="org.eclipse.linuxtools.gdbtrace.ui.command.project.trace.selectexecutable"> |
| 60 | <activeWhen> |
| 61 | <iterate |
| 62 | ifEmpty="false" |
| 63 | operator="and"> |
| 64 | <instanceof |
| 65 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfTraceElement"> |
| 66 | </instanceof> |
| 67 | </iterate> |
| 68 | </activeWhen> |
| 69 | </handler> |
| 70 | </extension> |
| 71 | <extension |
| 72 | point="org.eclipse.ui.navigator.navigatorContent"> |
| 73 | <commonWizard |
| 74 | associatedExtensionId="org.eclipse.linuxtools.tmf.ui.navigator.content" |
| 75 | menuGroupId="org.eclipse.linuxtools.tmf.ui.views.ui.wizards.menuGroupId" |
| 76 | type="new" |
| 77 | wizardId="org.eclipse.linuxtools.tmf.ui.views.ui.wizards.newProject"> |
| 78 | <enablement> |
| 79 | <with variable="activeWorkbenchWindow.activePerspective"> |
| 80 | <equals |
| 81 | value="org.eclipse.linuxtools.gdbtrace.perspective"> |
| 82 | </equals> |
| 83 | </with> |
| 84 | </enablement> |
| 85 | </commonWizard> |
| 86 | </extension> |
| 87 | <extension |
| 88 | point="org.eclipse.linuxtools.tmf.ui.tracetypeui"> |
| 89 | <type |
| 90 | icon="icons/obj16/gdb_icon16.png" |
| 91 | tracetype="org.eclipse.linuxtools.gdbtrace.ui.type.gdb"> |
| 92 | <eventsTableType |
| 93 | class="org.eclipse.tracecompass.internal.gdbtrace.ui.views.events.GdbEventsTable"> |
| 94 | </eventsTableType> |
| 95 | </type> |
| 96 | </extension> |
| 97 | |
| 98 | </plugin> |