Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnjeza2011-07-23 13:28:17 -0400
committerIgor Fedorenko2011-08-03 22:06:17 -0400
commit69257df2ca151b98e75b65d5e4f97b25b4131dc7 (patch)
tree37d74a195ae962d378ffcbbbe40324841c4ea3c3 /org.eclipse.m2e.refactoring/plugin.xml
parent691af24c2b882426c1c544d213d481e2c0276d69 (diff)
downloadm2e-core-69257df2ca151b98e75b65d5e4f97b25b4131dc7.tar.gz
m2e-core-69257df2ca151b98e75b65d5e4f97b25b4131dc7.tar.xz
m2e-core-69257df2ca151b98e75b65d5e4f97b25b4131dc7.zip
Fixing JBIDE-5914
Signed-off-by: snjeza <snjezana.peco@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.refactoring/plugin.xml')
-rw-r--r--org.eclipse.m2e.refactoring/plugin.xml62
1 files changed, 36 insertions, 26 deletions
diff --git a/org.eclipse.m2e.refactoring/plugin.xml b/org.eclipse.m2e.refactoring/plugin.xml
index 64f1fa54..61f75bec 100644
--- a/org.eclipse.m2e.refactoring/plugin.xml
+++ b/org.eclipse.m2e.refactoring/plugin.xml
@@ -9,33 +9,43 @@
<?eclipse version="3.2"?>
<plugin>
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:org.eclipse.jdt.ui.refactoring.menu?after=additions">
+ <command
+ commandId="org.eclipse.m2e.editor.RenameArtifactAction"
+ icon="$nl$/icons/m2.gif"
+ label="%action.rename.label"
+ id="org.eclipse.m2e.editor.RenameArtifactAction">
+ <visibleWhen
+ checkEnabled="false">
+ <with variable="selection">
+ <count value="1"/>
+ <iterate>
+ <or>
+ <adapt type="org.eclipse.core.resources.IProject">
+ <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.m2e.core.maven2Nature"/>
+ </adapt>
+ <adapt type="org.eclipse.core.resources.IResource">
+ <test property="org.eclipse.core.resources.name" value="pom.xml"/>
+ </adapt>
+ </or>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ id="org.eclipse.m2e.editor.RenameArtifactAction"
+ name="%action.rename.label"
+ defaultHandler="org.eclipse.m2e.refactoring.rename.RenameArtifactHandler"/>
+ </extension>
+
<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="group.edit"/>
- <!-- 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

Back to the top