-
Notifications
You must be signed in to change notification settings - Fork 237
Expand file tree
/
Copy pathplugin.xml
More file actions
277 lines (270 loc) · 11.5 KB
/
Copy pathplugin.xml
File metadata and controls
277 lines (270 loc) · 11.5 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="org.springframework.ide.eclipse.boot.project" name="Boot Project" schema="schema/org.springframework.ide.eclipse.boot.project.exsd"/>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.springframework.ide.eclipse.boot.core.BootPropertyTester"
id="org.springsource.ide.eclipse.boot.BootPropertyTester"
namespace="org.springsource.ide.eclipse.boot"
properties="isBootProject,isBootResource,hasBootDevTools,isBoot2Project,isBoot2Resource"
type="org.eclipse.core.resources.IResource">
<!-- type="java.lang.Object" -->
</propertyTester>
<propertyTester
class="org.springframework.ide.eclipse.boot.core.BootJavaElementPropertyTester"
id="org.springframework.ide.eclipse.boot.core.BootJavaElementPropertyTester"
namespace="org.springsource.ide.eclipse.boot.javaelement"
properties="isInBootProject,isInBootProjectWithDevTools,isInBoot2Project"
type="org.eclipse.jdt.core.IJavaElement">
<!-- type="java.lang.Object" -->
</propertyTester>
</extension>
<extension point="org.eclipse.ui.preferencePages">
<page
category="org.springsource.ide.eclipse.commons.preferencePage"
class="org.springframework.ide.eclipse.boot.ui.preferences.BootPreferencePage"
id="org.springframework.ide.eclipse.boot.ui.preferences.BootPreferencePage"
name="Boot Launch Support">
</page>
<page
category="org.springsource.ide.eclipse.commons.preferencePage"
class="org.springframework.ide.eclipse.boot.ui.preferences.InitializrPreferencePage"
id="org.springframework.ide.eclipse.boot.ui.preferences.InitializrPreferencePage"
name="Initializr Integration - start.spring.io">
</page>
<page
category="org.springframework.ide.eclipse.boot.dash.prefs.BootDashPrefsPage"
class="org.springframework.ide.eclipse.boot.ui.preferences.BootInstallPreferencePage"
id="org.springframework.ide.eclipse.boot.ui.preferences.BootInstallPreferencePage"
name="Boot CLI Integration">
</page>
</extension>
<extension point="org.eclipse.ui.decorators">
<decorator
id="org.springframework.ide.eclipse.boot.ui.DevtoolsProjectDecorator"
label="Spring Boot Project Decorator"
lightweight="true"
state="true"
class= "org.springframework.ide.eclipse.boot.ui.BootProjectDecorator">
<description>
Decorates projects to show when a project's classpath contains Spring Boot Elements.
</description>
<enablement>
<or>
<objectClass
name="org.eclipse.jdt.core.IJavaProject">
</objectClass>
<objectClass
name="org.eclipse.core.resources.IProject">
</objectClass>
</or>
</enablement>
</decorator>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="org.springframework.ide.eclipse.boot.ui.preferences.PreferencesInitializer">
</initializer>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools"
commandId="org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools">
<enabledWhen>
<and>
<count
value="1">
</count>
<iterate>
<or>
<adapt
type="org.eclipse.core.resources.IResource">
<or>
<adapt
type="org.eclipse.core.resources.IProject">
<and>
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.m2e.core.maven2Nature">
</test>
<test
forcePluginActivation="true"
property="org.springsource.ide.eclipse.boot.isBootProject">
</test>
</and>
</adapt>
<test
property="org.eclipse.core.resources.name"
value="pom.xml">
</test>
</or>
</adapt>
<and>
<instanceof
value="org.eclipse.jdt.core.IJavaProject">
</instanceof>
<test
property="org.springsource.ide.eclipse.commons.java.projectNature"
value="org.eclipse.m2e.core.maven2Nature">
</test>
<test
forcePluginActivation="true"
property="org.springsource.ide.eclipse.boot.javaelement.isInBootProject">
</test>
</and>
</or>
</iterate>
</and>
</enabledWhen>
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.springframework.ide.eclipse.boot.commands.category"
id="org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools"
name="Add/Remove Boot Devtools">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.springframework.ide.eclipse.ui.tools?after=boot">
<command
commandId="org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools"
id="org.springframework.ide.eclipse.boot.ui.RemoveDevTools"
label="Remove DevTools"
style="push">
<visibleWhen
checkEnabled="false">
<and>
<count
value="1">
</count>
<iterate>
<or>
<adapt
type="org.eclipse.core.resources.IResource">
<and>
<test
forcePluginActivation="true"
property="org.springsource.ide.eclipse.boot.isBootResource">
</test>
<test
property="org.springsource.ide.eclipse.boot.hasBootDevTools">
</test>
<or>
<test
property="org.eclipse.core.resources.name"
value="pom.xml">
</test>
<adapt
type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.m2e.core.maven2Nature">
</test>
</adapt>
</or>
</and>
</adapt>
<and>
<instanceof
value="org.eclipse.jdt.core.IJavaProject">
</instanceof>
<test
property="org.springsource.ide.eclipse.commons.java.projectNature"
value="org.eclipse.m2e.core.maven2Nature">
</test>
<test
forcePluginActivation="true"
property="org.springsource.ide.eclipse.boot.javaelement.isInBootProject">
</test>
<test
property="org.springsource.ide.eclipse.boot.javaelement.isInBootProjectWithDevTools">
</test>
</and>
</or>
</iterate>
</and>
</visibleWhen>
</command>
<command
commandId="org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools"
id="org.springframework.ide.eclipse.boot.ui.AddDevTools"
label="Add DevTools"
style="push">
<visibleWhen
checkEnabled="false">
<and>
<count
value="1">
</count>
<iterate>
<or>
<adapt
type="org.eclipse.core.resources.IResource">
<and>
<test
forcePluginActivation="true"
property="org.springsource.ide.eclipse.boot.isBootResource">
</test>
<not>
<test
property="org.springsource.ide.eclipse.boot.hasBootDevTools">
</test>
</not>
<or>
<test
property="org.eclipse.core.resources.name"
value="pom.xml">
</test>
<adapt
type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.m2e.core.maven2Nature">
</test>
</adapt>
</or>
</and>
</adapt>
<and>
<instanceof
value="org.eclipse.jdt.core.IJavaProject">
</instanceof>
<test
property="org.springsource.ide.eclipse.commons.java.projectNature"
value="org.eclipse.m2e.core.maven2Nature">
</test>
<test
forcePluginActivation="true"
property="org.springsource.ide.eclipse.boot.javaelement.isInBootProject">
</test>
<not>
<test
property="org.springsource.ide.eclipse.boot.javaelement.isInBootProjectWithDevTools">
</test>
</not>
</and>
</or>
</iterate>
</and>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.springframework.ide.eclipse.boot.project">
<project nature="org.eclipse.m2e.core.maven2Nature" projectClass="org.springframework.ide.eclipse.boot.core.internal.MavenSpringBootProject"></project>
</extension>
<extension point="org.eclipse.ui.startup">
<startup class="org.springframework.ide.eclipse.boot.ui.preferences.MavenAptPreferenceInitializer"/>
<startup class="org.springframework.ide.eclipse.boot.ui.preferences.JSpecifyNullAnalysisStartup"/>
</extension>
</plugin>