Skip to main content
summaryrefslogtreecommitdiffstats
blob: 07211100ed848c02c61a95a8cfcbd94825d3bf8e (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
  Copyright (c) 2011, 2013 Oracle. 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:
    Oracle - initial API and implementation
 -->

<plugin>
	
	<!-- ***** expression definitions ***** -->

	<extension
		point="org.eclipse.core.expressions.definitions">

		<!--
			Return whether a JAXB platform config's JAXB platform is EclipseLink.
			Example usage:
			<adapt type="org.eclipse.jpt.jaxb.core.platform.JaxbPlatformConfig">
				<reference definitionId="org.eclipse.jpt.jaxb.eclipselink.expression.jaxbPlatformIsEclipseLink"/>
			</adapt>
		-->
		<definition id="org.eclipse.jpt.jaxb.eclipselink.expression.jaxbPlatformIsEclipseLink">
			<test property="org.eclipse.jpt.jaxb.core.jaxbPlatformGroup"
				value="eclipselink"/>
		</definition>
		
	</extension>


	<!-- ***** content types ***** -->

	<extension
		point="org.eclipse.core.contenttype.contentTypes">
		
		<!-- oxm.xml -->
  		<content-type
			id="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm"
			name="%OXM_XML_CONTENT"
			base-type="org.eclipse.jpt.jaxb.core.content.jaxbXmlContent">
			<describer
				class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber2">
				<parameter 
					name="element" 
					value="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}xml-bindings"/>
			</describer>
		</content-type>
		
	</extension>
	
	
	<!-- ***** property testers ***** -->

	<extension 
		point="org.eclipse.core.expressions.propertyTesters">
		
		<propertyTester
			id="org.eclipse.jpt.jaxb.eclipselink.core.propertyTester.JaxbPackage"
			type="org.eclipse.jpt.jaxb.core.context.JaxbPackage"
			namespace="org.eclipse.jpt.jaxb.eclipselink.core"
			properties="hasEclipseLinkJaxbProperty"
			class="org.eclipse.jpt.jaxb.eclipselink.core.internal.context.JaxbPackagePropertyTester"/>
		
	</extension>
	
	
	<!-- ***** JAXB platforms ***** -->

	<extension
		point="org.eclipse.jpt.jaxb.core.jaxbPlatforms">
		
		<jaxbPlatformGroup
        	id="eclipselink"
        	label="%ECLIPSELINK_PLATFORM_GROUP_LABEL"/>
		
		<jaxbPlatform
			id="eclipselink_2_1"
			label="%ECLIPSELINK_2_1_PLATFORM_LABEL"
			factoryClass="org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_1.ELJaxb_2_1_PlatformDefinitionFactory"
			group="eclipselink"
			jaxbFacetVersion="2.1"
			default="false"/>
		
		<jaxbPlatform
			id="eclipselink_2_2"
			label="%ECLIPSELINK_2_2_PLATFORM_LABEL"
			factoryClass="org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_2.ELJaxb_2_2_PlatformDefinitionFactory"
			group="eclipselink"
			jaxbFacetVersion="2.2"
			default="false"/>
		
		<jaxbPlatform
			id="eclipselink_2_3"
			label="%ECLIPSELINK_2_3_PLATFORM_LABEL"
			factoryClass="org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_3.ELJaxb_2_3_PlatformDefinitionFactory"
			group="eclipselink"
			jaxbFacetVersion="2.2"
			default="false"/>
		
		<jaxbPlatform
			id="eclipselink_2_4"
			label="%ECLIPSELINK_2_4_PLATFORM_LABEL"
			factoryClass="org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_4.ELJaxb_2_4_PlatformDefinitionFactory"
			group="eclipselink"
			jaxbFacetVersion="2.2"
			default="false"/>
		
		<jaxbPlatform
			id="eclipselink_2_5"
			label="%ECLIPSELINK_2_5_PLATFORM_LABEL"
			factoryClass="org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_5.ELJaxb_2_5_PlatformDefinitionFactory"
			group="eclipselink"
			jaxbFacetVersion="2.2"
			default="false"/>
		
	</extension>
	
	
	<!-- ***** EMF ecore package registry ***** -->

	 <extension
	 	point="org.eclipse.emf.ecore.generated_package">
		
		<package
			uri="http://www.eclipse.org/dali/oxm"
			class="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage"
			genModel="model/oxm.genmodel"/>
		
	</extension>
	
	
	<!-- ***** library validators ***** -->

	<extension
		point="org.eclipse.jpt.common.core.libraryValidators">
		
		<libraryValidator
			id="eclipselinkUserLibraryValidator"
			class="org.eclipse.jpt.jaxb.eclipselink.core.internal.libval.ELJaxbUserLibraryValidator">
			<enablement>
				<and>
					<with variable="libraryProvider">
						<test property="org.eclipse.jpt.common.core.extendsId"
							value="jaxb-user-library-provider"/>
					</with>
					<with variable="config">
						<adapt type = "org.eclipse.jpt.jaxb.core.platform.JaxbPlatformConfig">
							<test property="org.eclipse.jpt.jaxb.core.jaxbPlatformGroup"
								value="eclipselink"/>
						</adapt>
					</with>
				</and>
			</enablement>
		</libraryValidator>
		
	</extension>
	
	
	<!-- ***** resource types ***** -->

	<extension 
		point="org.eclipse.jpt.common.core.resourceTypes">
		
		<resource-type
			id="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm_2_1"
			content-type="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm"
			version="2.1"/>
		
		<resource-type
			id="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm_2_2"
			content-type="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm"
			version="2.2"/>
		
		<resource-type
			id="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm_2_3"
			content-type="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm"
			version="2.3"/>
		
		<resource-type
			id="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm_2_4"
			content-type="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm"
			version="2.4"/>
		
		<resource-type
			id="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm_2_5"
			content-type="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm"
			version="2.5"/>
		
	</extension>
	
	
	<!-- ***** WTP resource factories ***** -->

	<extension
		point="org.eclipse.wst.common.modulecore.resourceFactories">
		
		<resourceFactory
			class="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmXmlResourceFactory"
			isDefault="true">
			<contentTypeBinding
				contentTypeId="org.eclipse.jpt.jaxb.eclipselink.core.content.oxm">
			</contentTypeBinding>
		</resourceFactory>
		
	</extension>
	
</plugin>

Back to the top