Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2014-02-13 07:09:51 -0500
committerGerrit Code Review @ Eclipse.org2014-03-04 12:16:45 -0500
commit11cc8834103f0c654450689dd34520ec9adbbc22 (patch)
tree15071ccc883e0a43a42d1aab35c1cb2c21ae777f /org.eclipse.m2e.profiles.ui/plugin.xml
parent8f1095d2e358ddda2002431f1e535d57451cad84 (diff)
downloadm2e-core-11cc8834103f0c654450689dd34520ec9adbbc22.tar.gz
m2e-core-11cc8834103f0c654450689dd34520ec9adbbc22.tar.xz
m2e-core-11cc8834103f0c654450689dd34520ec9adbbc22.zip
428094 : contribute Maven Profile Manager UI
Change-Id: Ib3049263268f33e1d628faa7c99aefde55fe5d9c Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.profiles.ui/plugin.xml')
-rw-r--r--org.eclipse.m2e.profiles.ui/plugin.xml93
1 files changed, 93 insertions, 0 deletions
diff --git a/org.eclipse.m2e.profiles.ui/plugin.xml b/org.eclipse.m2e.profiles.ui/plugin.xml
new file mode 100644
index 00000000..62eb934a
--- /dev/null
+++ b/org.eclipse.m2e.profiles.ui/plugin.xml
@@ -0,0 +1,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