Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b029e501c0fba42dadd2204b3dfd33673b56aa8b (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
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
278
279
280
281
282
283
284
285
286
287
288
289
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!-- ====================================================================== -->
<!-- Copyright (c) 2016, 2017 Red Hat Inc. and others.                      -->
<!-- This program and the accompanying materials                            -->
<!-- are made available under the terms of the Eclipse Public License 2.0   -->
<!-- which accompanies this distribution, and is available at               -->
<!-- https://www.eclipse.org/legal/epl-2.0/                                 -->
<!--                                                                        -->
<!-- SPDX-License-Identifier: EPL-2.0                                       -->
<!--                                                                        -->
<!-- Contributors:                                                          -->
<!--     Sopot Cela & Mickael Istria (Red Hat Inc). -initial implementation -->
<!--     Lucas Bullen (Red Hat Inc.) - Bug 508829 custom reconciler support -->
<!--                                 - Bug 521382 default highlighter       -->
<!-- ====================================================================== -->
<plugin>
	<extension
			point="org.eclipse.ui.genericeditor.contentAssistProcessors">
		<contentAssistProcessor
			class="org.eclipse.ui.genericeditor.tests.contributions.BarContentAssistProcessor"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</contentAssistProcessor>
		<contentAssistProcessor
			class="org.eclipse.ui.genericeditor.tests.contributions.LongRunningBarContentAssistProcessor"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type">
		</contentAssistProcessor>
		<contentAssistProcessor
	        class="org.eclipse.ui.genericeditor.tests.contributions.BarContentAssistProcessor"
	        contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
	      <enabledWhen>
	        <test
	            forcePluginActivation="true"
	            property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
	        </test>
	      </enabledWhen>
		</contentAssistProcessor>
	<contentAssistProcessor
		class="org.eclipse.ui.genericeditor.tests.contributions.ToUpperCaseContentAssistProcessor"
		contentType="org.eclipse.ui.genericeditor.tests.content-type">
	</contentAssistProcessor>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.hoverProviders">
		<hoverProvider
        class="org.eclipse.ui.genericeditor.tests.contributions.AlrightyHoverProvider"
        contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
              			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
			</enabledWhen>
		</hoverProvider>
		<hoverProvider
        		class="org.eclipse.ui.genericeditor.tests.contributions.AlrightyHoverProvider"
       			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</hoverProvider>
		<hoverProvider
			class="org.eclipse.ui.genericeditor.tests.contributions.WorldHoverProvider"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</hoverProvider>
		<hoverProvider
			class="org.eclipse.ui.genericeditor.tests.contributions.HelloHoverProvider"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type-bar">
		</hoverProvider>
		<hoverProvider
        		class="org.eclipse.ui.genericeditor.tests.contributions.WorldHoverProvider"
				contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<not>
           			<test
                 			forcePluginActivation="true"
                 			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
           			</test>
        		</not>
			</enabledWhen>
  		</hoverProvider>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.reconcilers">
		<reconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerFirst"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</reconciler>
		<reconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerSecond"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type-bar">
		</reconciler>
		<reconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerFirst"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</reconciler>
  		<reconciler
        		class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerFirst"
        		contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
              			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
  		</reconciler>
  		<reconciler
        		class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerSecond"
       			contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<not>
           			<test
                 			forcePluginActivation="true"
                 			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
           			</test>
        		</not>
     		</enabledWhen>
  		</reconciler>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.presentationReconcilers">
		<presentationReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerBlue"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</presentationReconciler>
		<presentationReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerGreen"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type">
		</presentationReconciler>
		<presentationReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerRed"
			contentType="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type">
		</presentationReconciler>
  		<presentationReconciler
        		class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerBlue"
        		contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
              			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
  		</presentationReconciler>
	</extension>
	<extension
			point="org.eclipse.ui.ide.markerResolution">
		<markerResolutionGenerator
			class="org.eclipse.ui.genericeditor.tests.contributions.MarkerResolutionGenerator"
			markerType="org.eclipse.core.resources.problemmarker">
		</markerResolutionGenerator>
	</extension>
	<extension
			point="org.eclipse.core.contenttype.contentTypes">
		<content-type
			base-type="org.eclipse.core.runtime.text"
			file-names="foo.txt"
			id="org.eclipse.ui.genericeditor.tests.content-type"
			name="Generic Editor Test content-type"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.content-type"
			file-names="foo.txt"
			id="org.eclipse.ui.genericeditor.tests.specialized-content-type"
			name="Specialized Generic Editor content-type"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.specialized-content-type"
			file-names="foo.txt"
			id="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type"
			name="Sub-Specialized Generic Editor content-type"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.content-type"
			file-names="foobar.txt"
			id="org.eclipse.ui.genericeditor.tests.specialized-content-type-foobartxt"
			name="Specialized Generic Editor content-type for &apos;foobar.txt&apos;"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.core.runtime.text"
			file-names="bar.txt"
			id="org.eclipse.ui.genericeditor.tests.content-type-bar"
			name="Generic Editor Test content-type for &apos;bar.txt&apos;"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.content-type-bar"
			file-names="bar.txt"
			id="org.eclipse.ui.genericeditor.tests.specialized-content-type-bar"
			name="Specialized Generic Editor content-type for &apos;bar.txt&apos;"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.core.runtime.text"
			file-names="enabledWhen.txt"
			id="org.eclipse.ui.genericeditor.tests.enabled-when-content-type"
			name="enabledWhen content-type for &apos;enabledWhen.txt&apos;"
			priority="normal">
		</content-type>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.autoEditStrategies">
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategyFirst"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</autoEditStrategy>
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategySecond"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type">
		</autoEditStrategy>
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategyThird"
			contentType="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type">
		</autoEditStrategy>
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategyFirst"
			contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
             			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
		</autoEditStrategy>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.highlightReconcilers">
		<highlightReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.HighlightReconciler"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</highlightReconciler>
		<highlightReconciler
				class="org.eclipse.ui.genericeditor.tests.contributions.HighlightReconciler"
				contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
			<enabledWhen>
				<test
						forcePluginActivation="true"
						property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
				</test>
			</enabledWhen>
		</highlightReconciler>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.foldingReconcilers">
		<foldingReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.FoldingReconciler"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</foldingReconciler>
		<foldingReconciler
				class="org.eclipse.ui.genericeditor.tests.contributions.FoldingReconciler"
				contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
			<enabledWhen>
				<test
						forcePluginActivation="true"
						property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
				</test>
			</enabledWhen>
		</foldingReconciler>
	</extension>
	<extension
			point="org.eclipse.core.expressions.propertyTesters">
    	<propertyTester
				class="org.eclipse.ui.genericeditor.tests.contributions.EnabledPropertyTester"
				id="org.eclipse.ui.genericeditor.tests.contributions.enabled"
				namespace="org.eclipse.ui.genericeditor.tests.contributions"
				properties="enabled"
				type="org.eclipse.ui.internal.genericeditor.ExtensionBasedTextEditor">
    	</propertyTester>
	</extension>
    <extension
          point="org.eclipse.ui.genericeditor.icons">
        <icon
             contentType="org.eclipse.ui.genericeditor.tests.content-type"
             icon="icons/newfile_wiz.png"/>
        <icon
             contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type"
             icon="icons/newfolder_wiz.png"/>
        <icon
             contentType="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type"
             icon="platform:/plugin/org.eclipse.ui.ide/icons/full/etool16/newprj_wiz.png"/>
    </extension>
    <extension
          point="org.eclipse.ui.genericeditor.quickAssistProcessors">
       <quickAssistProcessor
             class="org.eclipse.ui.genericeditor.tests.contributions.QuickAssistProcessor"
             contentType="org.eclipse.ui.genericeditor.tests.content-type">
       </quickAssistProcessor>
    </extension>
</plugin>

Back to the top