Skip to main content
summaryrefslogtreecommitdiffstats
blob: 71bcccbdc2941a74512e23fbf2ddfc95d1a7d11e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
    Copyright (c) 2013 BREDEX GmbH.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html
 -->
<plugin>
   <extension
         point="org.eclipse.ui.commands">
      <category
            id="org.eclipse.jubula.client.alm.ui.commands.category"
            name="Mylyn tasks">
      </category>
      <command
            categoryId="org.eclipse.jubula.client.alm.ui.commands.category"
            id="org.eclipse.jubula.client.alm.ui.commands.createTaskCommand"
            name="Create a Mylyn task">
      </command>
      <command
            categoryId="org.eclipse.jubula.client.alm.ui.commands.category"
            id="org.eclipse.jubula.client.alm.ui.commands.openTaskForNodeCommand"
            name="Mylyn Task Editor">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.jubula.client.alm.mylyn.ui.handler.AddTaskHandler"
            commandId="org.eclipse.jubula.client.alm.ui.commands.createTaskCommand">
      </handler>
      <handler
            class="org.eclipse.jubula.client.alm.mylyn.ui.handler.OpenTaskFromNodeHandler"
            commandId="org.eclipse.jubula.client.alm.ui.commands.openTaskForNodeCommand">
	      <enabledWhen>
	        <and>
	          <iterate
	            ifEmpty="false"
	            operator="and">
	            <or>
	              <instanceof value="org.eclipse.jubula.client.core.model.ISpecTestCasePO" />
	              <instanceof value="org.eclipse.jubula.client.core.model.IExecTestCasePO" />
	              <instanceof value="org.eclipse.jubula.client.core.model.ITestSuitePO" />
	              <instanceof value="org.eclipse.jubula.client.core.model.IRefTestSuitePO" />
	              <instanceof value="org.eclipse.jubula.client.core.model.ITestJobPO" />
	            </or>
	            <test property="org.eclipse.jubula.client.ui.rcp.model.hasTaskId" />
	          </iterate>
	        </and>
	      </enabledWhen>
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.eclipse.jubula.client.alm.ui.commands.createTaskCommand"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+6">
      </key>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution locationURI="popup:org.eclipse.jubula.client.ui.editors.TestResultViewer?after=additions">
	      <command commandId="org.eclipse.jubula.client.alm.ui.commands.createTaskCommand" style="push" />
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.jubula.client.ui.rcp.views.TestSuiteBrowser.menu.open">
         <command
               commandId="org.eclipse.jubula.client.alm.ui.commands.openTaskForNodeCommand"
               style="push">
         </command>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.jubula.client.ui.rcp.views.TestCaseBrowser.menu.open">
         <command
               commandId="org.eclipse.jubula.client.alm.ui.commands.openTaskForNodeCommand"
               style="push">
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commandImages">
      <image
            commandId="org.eclipse.jubula.client.alm.ui.commands.createTaskCommand"
            icon="icons/createTask.gif">
      </image>
   </extension>
   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
            targetID="org.eclipse.jubula.client.ui.perspectives.ReportPerspective">
         <viewShortcut
               id="org.eclipse.mylyn.tasks.ui.views.tasks">
         </viewShortcut>
         <viewShortcut
               id="org.eclipse.mylyn.tasks.ui.views.repositories">
         </viewShortcut>
      </perspectiveExtension>
      <perspectiveExtension
            targetID="org.eclipse.jubula.client.ui.rcp.perspectives.ExecutionPerspective">
         <viewShortcut
               id="org.eclipse.mylyn.tasks.ui.views.tasks">
         </viewShortcut>
         <viewShortcut
               id="org.eclipse.mylyn.tasks.ui.views.repositories">
         </viewShortcut>
      </perspectiveExtension>
      <perspectiveExtension
            targetID="org.eclipse.jubula.client.ui.rcp.perspectives.SpecificationPerspective">
         <viewShortcut
               id="org.eclipse.mylyn.tasks.ui.views.tasks">
         </viewShortcut>
         <viewShortcut
               id="org.eclipse.mylyn.tasks.ui.views.repositories">
         </viewShortcut>
      </perspectiveExtension>
   </extension>

</plugin>

Back to the top