Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5cfef04011c58dd943f74b1ce0fec411ed6d4f13 (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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2007, 2008 Sonatype, 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
-->
<?eclipse version="3.2"?>
<plugin>
   <extension-point id="classifierClasspathProviders" name="%extension-point.classifierClasspathProviders.name" schema="schema/classifierClasspathProviders.exsd"/>

   <extension
         point="org.eclipse.m2e.core.lifecycleMappings">
      <lifecycleMapping
            class="org.eclipse.m2e.jdt.internal.JarLifecycleMapping"
            id="org.eclipse.m2e.jdt.JarLifecycleMapping"
            name="%lifecycleMapping.jar.name">
      </lifecycleMapping>
   </extension>

   <extension point="org.eclipse.jdt.core.classpathContainerInitializer"
              id="maven2ClasspathContainer"
              name="%m2.classpath-container.name">
      <classpathContainerInitializer
            id="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
            class="org.eclipse.m2e.jdt.internal.MavenClasspathContainerInitializer"/>
   </extension>
   
   <extension point="org.eclipse.jdt.ui.classpathContainerPage"
          id="maven2ClasspathContainerPage"
          name="%m2.classpath-container.page.name">
      <classpathContainerPage
          id="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
          name="%m2.classpath-container.page.dependencies.name"
          class="org.eclipse.m2e.jdt.internal.ui.MavenClasspathContainerPage"/>
   </extension>
   
   <extension point="org.eclipse.jdt.launching.classpathProviders">
      <classpathProvider 
          id="org.eclipse.m2e.launchconfig.classpathProvider"
          class="org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider"/>
      <classpathProvider 
          id="org.eclipse.m2e.launchconfig.sourcepathProvider"
          class="org.eclipse.m2e.jdt.internal.launch.MavenSourcePathProvider"/>
   </extension>

   <extension point="org.eclipse.m2e.core.projectConfigurators">
      <configurator
            class="org.eclipse.m2e.jdt.internal.JavaProjectConfigurator"
            id="org.eclipse.m2e.jdt.javaConfigurator"
            name="%configurator.jdt.name">
      </configurator>
   </extension>
   
   <extension point="org.eclipse.jdt.core.classpathVariableInitializer">
      <classpathVariableInitializer variable="M2_REPO" readOnly="true"
          class="org.eclipse.m2e.jdt.internal.MavenClasspathVariableInitializer"/>
   </extension>

   <extension point="org.eclipse.core.runtime.adapters">
      <factory adaptableType="org.eclipse.jdt.core.IPackageFragmentRoot"
               class="org.eclipse.m2e.jdt.internal.JavaElementsAdapterFactory">
         <adapter type="org.eclipse.m2e.core.embedder.ArtifactKey"/>
         <adapter type="org.eclipse.core.runtime.IPath"/>
         <adapter type="org.eclipse.m2e.core.project.IMavenProjectFacade"/>
      </factory>
      <factory adaptableType="org.eclipse.jdt.core.IJavaProject"
               class="org.eclipse.m2e.jdt.internal.JavaElementsAdapterFactory">
         <adapter type="org.eclipse.m2e.core.embedder.ArtifactKey"/>
         <adapter type="org.eclipse.core.runtime.IPath"/>
         <adapter type="org.eclipse.m2e.core.project.IMavenProjectFacade"/>
      </factory>
      <factory adaptableType="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
               class="org.eclipse.m2e.jdt.internal.JavaElementsAdapterFactory">
         <adapter type="org.eclipse.m2e.core.embedder.ArtifactKey"/>
         <adapter type="org.eclipse.core.runtime.IPath"/>
         <adapter type="org.eclipse.m2e.core.project.IMavenProjectFacade"/>
      </factory>
   </extension>

   <extension point="org.eclipse.jdt.ui.javaElementFilters">
      <filter id="org.eclipse.m2e.MavenModuleFilter"
          targetId="org.eclipse.jdt.ui.PackageExplorer"
          class="org.eclipse.m2e.jdt.internal.ui.filter.MavenModuleFilter"
          description="%filter.description"
          name="%filter.name"
          enabled="false"/>
   </extension>
   
   <extension point="org.eclipse.ui.editorActions">
      <editorContribution id="org.eclipse.m2e.jdt.downloadSourcesContribution"
                          targetID="org.eclipse.jdt.ui.ClassFileEditor">
         <action id="org.eclipse.m2e.jdt.downloadSourcesAction"
              class="org.eclipse.m2e.jdt.internal.DownloadSourcesActionDelegate"
              label="%action.label" style="push"/>
      </editorContribution>
      <editorContribution id="org.eclipse.m2e.jdt.downloadSourcesContribution_38"
                          targetID="org.eclipse.jdt.ui.ClassFileEditorNoSource">
         <action id="org.eclipse.m2e.jdt.downloadSourcesAction"
              class="org.eclipse.m2e.jdt.internal.DownloadSourcesActionDelegate"
              label="%action.label" style="push"/>
      </editorContribution>
   </extension>

   <extension point="org.eclipse.ui.popupMenus">
   
      <!--
      NOW WE HAVE CLASSPATH MENU CONTRIBUTIONS
       -->
      <objectContribution id="org.eclipse.m2e.classpathMenu"
                          objectClass="org.eclipse.jdt.core.IPackageFragmentRoot"
                          adaptable="true">
		<menu
            id="org.eclipse.m2e.classpathMenu" 
            path="additions" 
            label="%m2.popup.menu.label"> 
            <groupMarker name="new"/>
            <separator name="org.eclipse.m2e.core.separator1"/>
            <groupMarker name="update"/>
            <separator name="org.eclipse.m2e.core.separator2"/>
            <groupMarker name="open"/>
            <separator name="org.eclipse.m2e.core.separator3"/>
            <groupMarker name="nature"/>
            <separator name="org.eclipse.m2e.core.separator4"/>
            <groupMarker name="import"/>
         </menu>   
      </objectContribution>
       <objectContribution id="org.eclipse.m2e.classpathMenu.downloadSourcesAction"
                          objectClass="org.eclipse.jdt.core.IPackageFragmentRoot"
                          adaptable="true">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadSources"
                 label="%m2.popup.DownloadSourcesAction.downloadSource"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenu/update"
                 enablesFor="+"/>
         <enablement>
             <and>
           		<test property="org.eclipse.m2e.hasArtifactKey"/>
	             <not>
	           		<test property="org.eclipse.m2e.hasProjectArtifactKey"/>
	             </not>
	         </and>
         </enablement>
      </objectContribution> 
       <objectContribution id="org.eclipse.m2e.classpathMenu.downloadJavadocAction"
                          objectClass="org.eclipse.jdt.core.IPackageFragmentRoot"
                          adaptable="true">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadJavaDoc"
                 label="%m2.popup.DownloadSourcesAction.downloadJavaDoc"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenu/update"
                 enablesFor="+"/>
         <enablement>
             <and>
           		<test property="org.eclipse.m2e.hasArtifactKey"/>
	             <not>
	           		<test property="org.eclipse.m2e.hasProjectArtifactKey"/>
	             </not>
	         </and>
         </enablement>
      </objectContribution>
      
      <objectContribution id="org.eclipse.m2e.classpathMenu.openJavadocAction"
                          objectClass="org.eclipse.jdt.core.IPackageFragmentRoot"
                          adaptable="true">
         <action id="org.eclipse.m2e.openJavaDocAction"
                 class="org.eclipse.m2e.jdt.internal.actions.OpenJavaDocAction"
                 label="%m2.popup.OpenJavaDoc"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenu/open"
                 enablesFor="+"/>
         <enablement>
         	<test property="org.eclipse.m2e.hasArtifactKey"/>
         </enablement>
      </objectContribution>
      
      <objectContribution id="org.eclipse.m2e.classpathMenu.openPomAction"
                          objectClass="org.eclipse.jdt.core.IPackageFragmentRoot"
                          adaptable="true">
         <action id="org.eclipse.m2e.openPomAction"
                 class="org.eclipse.m2e.core.ui.internal.actions.OpenPomAction"
                 label="%m2.popup.OpenPomAction"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenu/open"
                 enablesFor="+"/>
         <enablement>
         	<test property="org.eclipse.m2e.hasArtifactKey"/>
         </enablement>
      </objectContribution>        

      <!--
      NOW WE HAVE CLASSPATH MENU WRAPPER CONTRIBUTIONS
       -->
      <objectContribution id="org.eclipse.m2e.classpathMenuWrapper"
           objectClass="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
                          adaptable="true">
		<menu
            id="org.eclipse.m2e.classpathMenuWrapper" 
            path="additions" 
            label="%m2.popup.menu.label"> 
            <groupMarker name="new"/>
            <separator name="org.eclipse.m2e.core.separator1"/>
            <groupMarker name="update"/>
            <separator name="org.eclipse.m2e.core.separator2"/>
            <groupMarker name="open"/>
            <separator name="org.eclipse.m2e.core.separator3"/>
            <groupMarker name="nature"/>
            <separator name="org.eclipse.m2e.core.separator4"/>
            <groupMarker name="import"/>
         </menu>   
      </objectContribution>
      
       <objectContribution id="org.eclipse.m2e.classpathMenuWrapper.downloadSourcesAction"
           objectClass="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
                          adaptable="true">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadSources"
                 label="%m2.popup.DownloadSourcesAction.downloadSource"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenuWrapper/update"
                 enablesFor="+"/>
         <enablement>
             <and>
           		<test property="org.eclipse.m2e.hasArtifactKey"/>
	             <not>
	           		<test property="org.eclipse.m2e.hasProjectArtifactKey"/>
	             </not>
	         </and>
         </enablement>
      </objectContribution> 
       <objectContribution id="org.eclipse.m2e.classpathMenuWrapper.downloadJavadocAction"
           objectClass="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
                          adaptable="true">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadJavaDoc"
                 label="%m2.popup.DownloadSourcesAction.downloadJavaDoc"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenuWrapper/update"
                 enablesFor="+"/>
         <enablement>
             <and>
           		<test property="org.eclipse.m2e.hasArtifactKey"/>
	             <not>
	           		<test property="org.eclipse.m2e.hasProjectArtifactKey"/>
	             </not>
	         </and>
         </enablement>
      </objectContribution>   
      
      <objectContribution id="org.eclipse.m2e.classpathMenuWrapper.openJavadocAction"
           objectClass="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
                          adaptable="true">
         <action id="org.eclipse.m2e.openJavaDocAction"
                 class="org.eclipse.m2e.jdt.internal.actions.OpenJavaDocAction"
                 label="%m2.popup.OpenJavaDoc"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenuWrapper/open"
                 enablesFor="+"/>
         <enablement>
         	<test property="org.eclipse.m2e.hasArtifactKey"/>
         </enablement>
      </objectContribution>
      
      <objectContribution id="org.eclipse.m2e.classpathMenuWrapper.openPomAction"
           objectClass="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
                          adaptable="true">
         <action id="org.eclipse.m2e.openPomAction"
                 class="org.eclipse.m2e.core.ui.internal.actions.OpenPomAction"
                 label="%m2.popup.OpenPomAction"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenuWrapper/open"
                 enablesFor="+"/>
         <enablement>
         	<test property="org.eclipse.m2e.hasArtifactKey"/>
         </enablement>
      </objectContribution>        
   
       <objectContribution id="org.eclipse.m2e.downloadSourcesAction"
                          objectClass="org.eclipse.core.resources.IProject"
                          adaptable="true">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadSources"
                 label="%m2.popup.DownloadSourcesAction.downloadSource"
                 style="push"
                 menubarPath="org.eclipse.m2e.core.mavenMenu/update"
                 enablesFor="+"/>
         <visibility>
           <and>
             <objectState name="open" value="true"/>
             <objectState name="nature" value="org.eclipse.m2e.core.maven2Nature"/>
           </and>
         </visibility>
      </objectContribution> 
       <objectContribution id="org.eclipse.m2e.downloadJavadocAction"
                          objectClass="org.eclipse.core.resources.IProject"
                          adaptable="true">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadJavaDoc"
                 label="%m2.popup.DownloadSourcesAction.downloadJavaDoc"
                 style="push"
                 menubarPath="org.eclipse.m2e.core.mavenMenu/update"
                 enablesFor="+"/>
         <visibility>
           <and>
             <objectState name="open" value="true"/>
             <objectState name="nature" value="org.eclipse.m2e.core.maven2Nature"/>
           </and>
         </visibility>
      </objectContribution>   
      
       <objectContribution id="org.eclipse.m2e.workingSet.downloadSourcesAction"
      	     adaptable="true"
             objectClass="org.eclipse.ui.IWorkingSet">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadSources"
                 label="%m2.popup.DownloadSourcesAction.downloadSource"
                 style="push"
                 menubarPath="org.eclipse.m2e.core.workingSetMenu/update"
                 enablesFor="+"/>
      </objectContribution> 
       <objectContribution id="org.eclipse.m2e.workingSet.downloadJavadocAction"
      	     adaptable="true"
             objectClass="org.eclipse.ui.IWorkingSet">
         <action id="org.eclipse.m2e.downloadSourcesAction"
                 class="org.eclipse.m2e.jdt.internal.actions.DownloadSourcesAction:downloadJavaDoc"
                 label="%m2.popup.DownloadSourcesAction.downloadJavaDoc"
                 style="push"
                 menubarPath="org.eclipse.m2e.core.workingSetMenu/update"
                 enablesFor="+"/>
      </objectContribution>   
         
      <objectContribution id="org.eclipse.m2e.openJavaDocArtifact"
          objectClass="org.apache.maven.artifact.Artifact"
          adaptable="false">
        <action id="org.eclipse.m2e.ui.openJavaDocArtifact"
                class="org.eclipse.m2e.jdt.internal.actions.OpenJavaDocAction"
                label="%action.javadoc.label"
                enablesFor="1" icon="icons/javadoc.gif"/>
      </objectContribution>
      <objectContribution id="org.eclipse.m2e.openJavaDocDependencyNodeAether"
          objectClass="org.eclipse.aether.graph.DependencyNode"
          adaptable="false">
        <action id="org.eclipse.m2e.ui.openJavaDocDependencyNode"
                class="org.eclipse.m2e.jdt.internal.actions.OpenJavaDocAction"
                label="%action.javadoc3.label"
                enablesFor="1" icon="icons/javadoc.gif"/>
      </objectContribution>
      <objectContribution id="org.eclipse.m2e.openJavaDocDependency"
            objectClass="org.eclipse.m2e.model.edit.pom.Dependency"
            adaptable="false">
         <action id="org.eclipse.m2e.ui.openJavaDocDependency"
               class="org.eclipse.m2e.jdt.internal.actions.OpenJavaDocAction"
               label="%action.javadoc4.label"
               enablesFor="1"/>
      </objectContribution>
   </extension>
   <extension
         point="org.eclipse.m2e.core.lifecycleMappingMetadataSource">
   </extension>
   <extension
         point="org.eclipse.m2e.core.projectConversionParticipants">
      <projectConversionParticipant
            class="org.eclipse.m2e.jdt.internal.JavaProjectConversionParticipant"
            id="org.eclipse.m2e.jdt.javaProjectConversionParticipant"
            name="%java.conversion.participant.name"
            nature="org.eclipse.jdt.core.javanature">
      </projectConversionParticipant>
      
      <conversionParticipantConfiguration 
      		conversionParticipantId="org.eclipse.m2e.jdt.javaProjectConversionParticipant"
      		compatiblePackagings="jar" 
      	 />   
   </extension>
   <extension
         point="org.eclipse.m2e.jdt.classifierClasspathProviders">
      <classifierClasspathProvider
            class="org.eclipse.m2e.jdt.internal.launch.BlankClassifierClasspathProvider"
            id="org.eclipse.m2e.jdt.mainClassifierClasspathProvider"
            name="Main Classifier Classpath Provider">
      </classifierClasspathProvider>
      <classifierClasspathProvider
            class="org.eclipse.m2e.jdt.internal.launch.NullClassifierClasspathProvider"
            id="org.eclipse.m2e.jdt.nullClassifierClasspathProvider"
            name="Null Classifier Classpath Provider">
      </classifierClasspathProvider>
      <classifierClasspathProvider
            class="org.eclipse.m2e.jdt.internal.launch.TestsClassifierClasspathProvider"
            id="org.eclipse.m2e.jdt.testsClassifierClasspathProvider"
            name="Tests Classifier Classpath Provider">
      </classifierClasspathProvider>
   </extension>

   
</plugin>

Back to the top