Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 62eb934a7c68d72d074749ba31ea48e8eefd14d4 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <!-- Maven Profile Selection-->
    <extension
          point="org.eclipse.ui.commands">
       <command
             categoryId="org.eclipse.ui.category.window"
             id="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
             name="%Select_Maven_Profiles_Cmd">
       </command>
    </extension>
    
    <extension
          point="org.eclipse.ui.handlers">
       <handler
             class="org.eclipse.m2e.profiles.ui.internal.actions.ProfileSelectionHandler"
             commandId="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand">
       </handler>
    </extension>
    <extension
          point="org.eclipse.ui.bindings">
       <key
             commandId="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
             contextId="org.eclipse.ui.contexts.window"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+P">
       </key>
    </extension>
   
   <extension point="org.eclipse.ui.popupMenus">
        <objectContribution id="org.eclipse.m2e.profiles.ui.profiles.selectFromProject"
                          objectClass="org.eclipse.core.resources.IProject"
                          adaptable="true">
         <action id="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileAction"
                 class="org.eclipse.m2e.profiles.ui.internal.actions.GenericCommandActionDelegate:org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                 label="%Select_Maven_Profiles_Menu"
                 style="push"
                 definitionId="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                 menubarPath="org.eclipse.m2e.core.mavenMenu/open"
                 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.profiles.ui.profiles.selectFromPom"
                          objectClass="org.eclipse.core.resources.IFile"
                          adaptable="true">
         <action id="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileAction"
                 class="org.eclipse.m2e.profiles.ui.internal.actions.GenericCommandActionDelegate:org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                 label="%Select_Maven_Profiles_Menu"
                 style="push"
                 definitionId="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                 menubarPath="org.eclipse.m2e.core.fileMenu/open"
                 enablesFor="+"/>
         <visibility>
            <objectState name="name" value="pom.xml"/>
         </visibility>
      </objectContribution>
      
      <objectContribution id="org.eclipse.m2e.profiles.ui.profiles.selectFromWorkingSet"
      	     adaptable="true"
             objectClass="org.eclipse.ui.IWorkingSet">
         <action id="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileAction"
                 class="org.eclipse.m2e.profiles.ui.internal.actions.GenericCommandActionDelegate:org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                 label="%Select_Maven_Profiles_Menu"
                 style="push"
                 definitionId="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                 menubarPath="org.eclipse.m2e.core.workingSetMenu/open"
                 enablesFor="+"/>
      </objectContribution>
      
  </extension> 
     <extension
          point="org.eclipse.ui.menus">  
           <menuContribution
             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
          <toolbar
                id="org.eclipse.m2e.profiles.ui.toolbars.selectMavenProfilesToolbar">
             <command
                   commandId="org.eclipse.m2e.profiles.ui.commands.selectMavenProfileCommand"
                   icon="icons/maven-profiles.gif"
                   id="org.eclipse.m2e.profiles.ui.toolbars.selectMavenProfilesCommand"
                   tooltip="%Select_Maven_Profiles_Cmd">
             </command>
          </toolbar>
       </menuContribution>
     </extension>
</plugin>

Back to the top