aboutsummaryrefslogtreecommitdiffstats
blob: 8dd7e3b10d8392817206281b35c182f051f570b6 (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
<?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="org.eclipse.ui.popupMenus">
     <objectContribution
           id="org.eclipse.m2e.refactoring.rename.pomContributor"
           objectClass="org.eclipse.core.resources.IFile"
           nameFilter="pom.xml" adaptable="true">
        <action id="org.eclipse.m2e.editor.RenamePomAction"
              class="org.eclipse.m2e.refactoring.rename.RenameArtifactAction"
              enablesFor="1"
              label="%action.rename1.label"
              menubarPath="MavenRefactoring"/>
        <!-- add visibility condition for managed poms -->      
     </objectContribution>
     <objectContribution id="org.eclipse.m2e.refactoring.rename.projectContributor"
           objectClass="org.eclipse.core.resources.IProject"
           adaptable="true">
        <action id="org.eclipse.m2e.editor.RenameProjectAction"
              class="org.eclipse.m2e.refactoring.rename.RenameArtifactAction"
              enablesFor="1"
              label="%action.rename2.label"
              menubarPath="org.eclipse.jdt.ui.refactoring.menu/MavenRefactoring"/>
        <visibility>
          <and>
            <objectState name="open" value="true"/>
            <objectState name="nature" value="org.eclipse.m2e.core.maven2Nature"/>
          </and>
        </visibility>
     </objectContribution>
     
     <!-- actions in pom editor -->
     <objectContribution
           id="org.eclipse.m2e.refactoring.exclude.artifactContributor"
           objectClass="org.apache.maven.artifact.Artifact"
           adaptable="true">
        <action id="org.eclipse.m2e.projectMenu.action"
              class="org.eclipse.m2e.refactoring.exclude.DependencyExcludeAction"
              enablesFor="1"
              icon="icons/exclude.gif"
              label="%action.exclude1.label"
              menubarPath="additions"/>
     </objectContribution>
     <objectContribution
           id="org.eclipse.m2e.refactoring.exclude.dependencyContributor"
           objectClass="org.apache.maven.shared.dependency.tree.DependencyNode"
           adaptable="true">
        <action id="org.eclipse.m2e.projectMenu.action"
            class="org.eclipse.m2e.refactoring.exclude.DependencyExcludeAction"
            enablesFor="1"
            icon="icons/exclude.gif"
            label="%action.exclude2.label"
            menubarPath="additions"/>
     </objectContribution>
     <objectContribution
           id="org.eclipse.m2e.refactoring.exclude.dependencyContributorAether"
           objectClass="org.sonatype.aether.graph.DependencyNode"
           adaptable="true">
        <action id="org.eclipse.m2e.projectMenu.action"
            class="org.eclipse.m2e.refactoring.exclude.DependencyExcludeAction"
            enablesFor="1"
            icon="icons/exclude.gif"
            label="%action.exclude3.label"
            menubarPath="additions"/>
     </objectContribution>
     
     
       <objectContribution id="org.eclipse.m2e.refactoring.DependencyExclude"
                          objectClass="org.eclipse.jdt.core.IPackageFragmentRoot"
                          adaptable="true">
         <action id="org.eclipse.m2e.refactoring.DependencyExclude"
                 class="org.eclipse.m2e.refactoring.exclude.DependencyExcludeAction"
                 label="%action.exclude3.label"
                 icon="icons/exclude.gif"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenu/open"
                 enablesFor="1"/>
         <enablement>
           	<test property="org.eclipse.m2e.hasArtifactKey"/>
         </enablement>
      </objectContribution>
      <objectContribution id="org.eclipse.m2e.refactoring.DependencyExclude2"
           objectClass="org.eclipse.jdt.internal.ui.packageview.ClassPathContainer$RequiredProjectWrapper"
                          adaptable="true">
         <action id="org.eclipse.m2e.refactoring.DependencyExclude"
                 class="org.eclipse.m2e.refactoring.exclude.DependencyExcludeAction"
                 label="%action.exclude3.label"
                 icon="icons/exclude.gif"
                 style="push"
                 menubarPath="org.eclipse.m2e.classpathMenuWrapper/open"
                 enablesFor="1"/>
         <enablement>
           	<test property="org.eclipse.m2e.hasArtifactKey"/>
         </enablement>
      </objectContribution> 
       
  </extension>
  
</plugin>