Skip to main content
summaryrefslogtreecommitdiffstats
blob: b03e2b5376b0ddd7f46bdf7a9e37a71fef7a15c6 (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
290
291
292
293
294
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
	
	<extension-point 
		id="jpaPlatform" 
		name="%JPA_PLATFORM" 
		schema="schema/jpaPlatform.exsd"/>
	
	
	<extension
		point="org.eclipse.core.runtime.adapters">
		
		<factory
			adaptableType="org.eclipse.ui.IWorkbenchPart"
			class="org.eclipse.jpt.ui.internal.selection.SelectionParticipantFactory">
			<adapter type="org.eclipse.jpt.ui.internal.selection.ISelectionParticipant"/>
		</factory>
		
		<factory
			adaptableType="org.eclipse.jpt.core.internal.IPersistentAttribute"
			class="org.eclipse.jpt.ui.internal.actions.PersistentAttributeActionFilter$Factory">
			<adapter
				type="org.eclipse.ui.IActionFilter"/>
		</factory>
		
		<factory
			adaptableType="org.eclipse.jpt.core.internal.content.orm.XmlPersistentAttribute"
			class="org.eclipse.jpt.ui.internal.actions.XmlPersistentAttributeActionFilter$Factory">
			<adapter
				type="org.eclipse.ui.IActionFilter"/>
		</factory>
		
	</extension>
	
	
	<extension
		point="org.eclipse.jpt.ui.jpaPlatform">
		
		<jpaPlatform
			id="generic"
			class="org.eclipse.jpt.ui.internal.generic.GenericPlatformUi"/>
		
	</extension>
	
	
	<extension
		point="org.eclipse.ui.newWizards">
		
		<category
			id="org.eclipse.jpt"
			name="%jpaWizardCategoryName"/>
		
		<wizard
			id="org.eclipse.jpt.jpaProject"
			name="%newJpaProjectWizardName"
			icon="icons/full/etool16/new_jpaproject_wiz.gif"
			category="org.eclipse.jpt"
			class="org.eclipse.jpt.ui.internal.wizards.NewJpaProjectWizard"
			project="true"
			finalPerspective="org.eclipse.jpt.ui.jpaPerspective">
			<description>%newJpaProjectWizardDesc</description>
		</wizard>
		
	</extension>
	
	<extension
		point="org.eclipse.ui.popupMenus">
		
		<objectContribution
			id="org.eclipse.jpt.ui.project.JPATools"
			objectClass="org.eclipse.core.resources.IProject"
			adaptable="true">
			<menu
				id="org.eclipse.jpt.ui.project.JPATools"
				label="%jpaMenuName"/>

			<enablement>
					<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa"/>
			</enablement>

			<action
				class="org.eclipse.jpt.ui.internal.actions.GenerateEntitiesAction"
				id="org.eclipse.jpt.ui.generateEntities"
				label="%generateEntities"
				menubarPath="org.eclipse.jpt.ui.project.JPATools/content"/>
				
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.jpt.ui.persistenceXmlActions"
			objectClass="org.eclipse.core.resources.IFile"
			nameFilter="persistence.xml">
			<menu
				id="persistenceXmlJPATools"
				label="%jpaMenuName"/>
			<action
				id="synchClassesAction"
				label="%synchronizeClasses"
				menubarPath="persistenceXmlJPATools/content"
				class="org.eclipse.jpt.ui.internal.actions.SynchronizeClassesAction"
				enablesFor="1"/>
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.jpt.ui.entityMappingsActions"
			objectClass="org.eclipse.jpt.core.internal.content.orm.EntityMappings">
			<action
				id="org.eclipse.jpt.ui.addPersistentClass"
				class="org.eclipse.jpt.ui.internal.actions.AddPersistentClassAction"
				label="%addPersistentClass"
				menubarPath="additions"/>
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.jpt.ui.xmlPersistentTypeActions"
			objectClass="org.eclipse.jpt.core.internal.content.orm.XmlPersistentType">
			<action
				id="org.eclipse.jpt.ui.removePersistentClass"
				class="org.eclipse.jpt.ui.internal.actions.RemovePersistentClassAction"
				label="%removePersistentClass"
				menubarPath="additions"/>
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.jpt.ui.xmlPersistentAttributeActions1"
			objectClass="org.eclipse.jpt.core.internal.content.orm.XmlPersistentAttribute">
			
			<action
				id="org.eclipse.jpt.ui.addPersistentAttributeToXml"
				class="org.eclipse.jpt.ui.internal.actions.AddPersistentAttributeToXmlAction"
				label="%addPersistentAttributeToXml"
				menubarPath="additions"/>
			<visibility>
				<and>
					<objectState
						name="isVirtual"
						value="true"/>
					<objectState
						name="isMapped"
						value="true"/>
				</and>
			</visibility>
			
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.jpt.ui.xmlPersistentAttributeActions2"
			objectClass="org.eclipse.jpt.core.internal.content.orm.XmlPersistentAttribute">
			
			<action
				id="org.eclipse.jpt.ui.addPersistentAttributeToXmlAndMap"
				class="org.eclipse.jpt.ui.internal.actions.AddPersistentAttributeToXmlAndMapAction"
				label="%addPersistentAttributeToXmlAndMap"
				enablesFor="1"
				menubarPath="additions"/>
			<visibility>
				<and>
					<objectState
						name="isVirtual"
						value="true"/>
					<objectState
						name="isMapped"
						value="false"/>
				</and>
			</visibility>
			
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.jpt.ui.xmlPersistentAttributeActions3"
			objectClass="org.eclipse.jpt.core.internal.content.orm.XmlPersistentAttribute">
			
			<action
				id="org.eclipse.jpt.ui.removePersistentAttributeFromXml"
				class="org.eclipse.jpt.ui.internal.actions.RemovePersistentAttributeFromXmlAction"
				label="%removePersistentAttributeFromXml"
				menubarPath="additions"/>
			<visibility>
				<objectState
					name="isVirtual"
					value="false"/>
			</visibility>
			
		</objectContribution>
		
		
	
	</extension>
	
	<extension
		point="org.eclipse.ui.preferencePages">
		
		<page
			id="org.eclipse.jpt.ui.jpaPreferencePage"
			name="%jpaPreferencePage"
			class="org.eclipse.jpt.ui.internal.prefs.JpaPreferencePage"/>
		
	</extension>
	
	<extension
		point="org.eclipse.ui.propertyPages">
		
		<page
			id="org.eclipse.jpt.ui.jpaProjectPropertiesPage"
			name="%jpaProjectPropertiesPage"
			class="org.eclipse.jpt.ui.internal.properties.JpaProjectPropertiesPage">
			<enabledWhen>
				<adapt 
					type="org.eclipse.core.resources.IProject">
					<test 
						property="org.eclipse.wst.common.project.facet.core.projectFacet"
						value="jpt.jpa"/>
				</adapt>
			</enabledWhen>
		</page>
	</extension>
		
	<extension
		point="org.eclipse.ui.views">
		
		<category
			id="org.eclipse.jpt.ui"
			name="%jpaPerspective"/>
		
		<view
	        category="org.eclipse.jpt.ui"
	        class="org.eclipse.jpt.ui.internal.views.JpaStructureView"
	        icon="icons/full/eview16/jpa_structure.gif"
	        id="org.eclipse.jpt.ui.jpaStructureView"
	        name="%jpaStructure"/>
		
		<view
	        category="org.eclipse.jpt.ui"
	        class="org.eclipse.jpt.ui.internal.views.JpaDetailsView"
	        icon="icons/full/eview16/jpa_details.gif"
			id="org.eclipse.jpt.ui.jpaDetailsView"
			name="%jpaDetails"/>
		
	</extension>
	
<!-- =================================================================================== -->
<!-- Extension: Persistence Perspective                                                  -->
<!-- =================================================================================== -->
	
	<extension
		 point="org.eclipse.ui.perspectives">
		<perspective
        class="org.eclipse.jpt.ui.internal.perspective.JpaPerspectiveFactory"
        icon="icons/full/eview16/jpa_perspective.gif"
        id="org.eclipse.jpt.ui.jpaPerspective"
        name="%jpaPerspective"/>
	</extension>
	
	<extension
		point="org.eclipse.wst.common.project.facet.ui.images">
		
		<image facet="jpt.jpa" path="icons/full/etool16/jpa_facet.gif"/>
		
	</extension>
	
	
	<extension 
		point="org.eclipse.wst.common.project.facet.ui.wizardPages">
		
		<wizard-pages action="jpt.jpa.install">
			<page class="org.eclipse.jpt.ui.internal.wizards.JpaFacetWizardPage"/>
		</wizard-pages>
		
	</extension>
	
<!-- =================================================================================== -->
<!-- Extension: Java Completion Proposal Computer                                        -->
<!-- =================================================================================== -->
	
	<extension
		point="org.eclipse.jdt.ui.javaCompletionProposalComputer"
		id="JpaCompletionProposalComputer">
		<javaCompletionProposalComputer 
			class="org.eclipse.jpt.ui.internal.JpaCompletionProposalComputer"
			categoryId="org.eclipse.jpt.ui.jpaProposalCategory">
			<partition type="__dftl_partition_content_type"/>
			<partition type="__java_string"/>
		</javaCompletionProposalComputer>
	</extension>

	<extension
		point="org.eclipse.jdt.ui.javaCompletionProposalComputer"
		id="jpaProposalCategory"
		name="%JpaProposalCategory">
		<proposalCategory
			icon="$nl$/icons/full/eview16/jpa_perspective.gif"/>
	</extension>

</plugin>

Back to the top