blob: 0324ab63ed6942e34f17eeea5dd8eafb34d40099 (
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
Copyright (c) 2013 Red Hat, Inc. 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
Contributors: Red Hat - initial API and implementation
-->
<plugin>
<extension
point="org.eclipse.ui.commands">
<category
name="RPMStubby Commands"
description="Commands for the RPM Stubby plugin"
id="rpmstubby.commands">
</category>
<command
categoryId="rpmstubby.commands"
id="rpmstubby.stubifyFeature"
description="%action.label"
name="%action.label">
</command>
<command
categoryId="rpmstubby.commands"
id="rpmstubby.stubifyPom"
description="%action.label"
name="%action.label">
</command>
<command
categoryId="rpmstubby.commands"
description="%action.label"
id="rpmstubby.stubifyEgg"
name="%action.label">
</command>
<command
categoryId="rpmstubby.commands"
description="%action.label"
id="rpmstubby.stubifyGem"
name="%action.label">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.linuxtools.internal.rpmstubby.popup.actions.StubifyFeatureHandler"
commandId="rpmstubby.stubifyFeature">
</handler>
<handler
class="org.eclipse.linuxtools.internal.rpmstubby.popup.actions.StubifyPomHandler"
commandId="rpmstubby.stubifyPom">
</handler>
<handler
class="org.eclipse.linuxtools.internal.rpmstubby.popup.actions.StubifyEggHandler"
commandId="rpmstubby.stubifyEgg">
</handler>
<handler
class="org.eclipse.linuxtools.internal.rpmstubby.popup.actions.StubifyGemHandler"
commandId="rpmstubby.stubifyGem">
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command
commandId="rpmstubby.stubifyFeature">
<visibleWhen>
<or>
<with variable="selection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.name"
value="feature.xml"/>
</adapt>
</iterate>
</with>
<with variable="selection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.projectNature"
value="org.eclipse.pde.FeatureNature"/>
</adapt>
</iterate>
</with>
</or>
</visibleWhen>
</command>
<command
commandId="rpmstubby.stubifyPom">
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.name"
value="pom.xml"/>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="rpmstubby.stubifyEgg">
<visibleWhen>
<with
variable="selection">
<iterate
ifEmpty="false">
<adapt
type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.name"
value="setup.py">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="rpmstubby.stubifyGem">
<visibleWhen>
<with
variable="selection">
<iterate
ifEmpty="false">
<adapt
type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.name"
value="*.gemspec">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
</plugin>
|