Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-12-06 17:10:52 -0500
committerPascal Rapicault2010-12-06 17:10:52 -0500
commitfbb4f5902cade92cc1689e73209c60a6413a5ef7 (patch)
treeace0fb107bafe980fc14fd7f3429e5c9aac2d795 /org.eclipse.m2e.refactoring/plugin.xml
parenta9c878c2624b33d8c74062717bf75302f0ae1fa7 (diff)
downloadm2e-core-fbb4f5902cade92cc1689e73209c60a6413a5ef7.tar.gz
m2e-core-fbb4f5902cade92cc1689e73209c60a6413a5ef7.tar.xz
m2e-core-fbb4f5902cade92cc1689e73209c60a6413a5ef7.zip
Initial commit at Eclipse
Diffstat (limited to 'org.eclipse.m2e.refactoring/plugin.xml')
-rw-r--r--org.eclipse.m2e.refactoring/plugin.xml80
1 files changed, 80 insertions, 0 deletions
diff --git a/org.eclipse.m2e.refactoring/plugin.xml b/org.eclipse.m2e.refactoring/plugin.xml
new file mode 100644
index 00000000..ceb05024
--- /dev/null
+++ b/org.eclipse.m2e.refactoring/plugin.xml
@@ -0,0 +1,80 @@
+<?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="org.eclipse.jdt.ui.refactoring.menu/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>
+ </extension>
+
+ <extension point="org.eclipse.m2e.core.m2menu">
+ <factory class="org.eclipse.m2e.refactoring.internal.RefactoringMavenMenuCreator"/>
+ </extension>
+
+</plugin>

Back to the top