Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-02-25 04:23:13 -0500
committerMilos Kleint2011-02-25 04:26:24 -0500
commitda00d17351966b1f8cb96edf598645161380c292 (patch)
tree4858338e37455a82e951737ad8a3f9c3ee1588d0 /org.eclipse.m2e.scm
parent5a6a6796c34ef24b3fdb4e428142d90acc6fb488 (diff)
downloadm2e-core-da00d17351966b1f8cb96edf598645161380c292.tar.gz
m2e-core-da00d17351966b1f8cb96edf598645161380c292.tar.xz
m2e-core-da00d17351966b1f8cb96edf598645161380c292.zip
336673 have the materialize action show on the popup in repository view
Diffstat (limited to 'org.eclipse.m2e.scm')
-rw-r--r--org.eclipse.m2e.scm/plugin.properties1
-rw-r--r--org.eclipse.m2e.scm/plugin.xml20
2 files changed, 21 insertions, 0 deletions
diff --git a/org.eclipse.m2e.scm/plugin.properties b/org.eclipse.m2e.scm/plugin.properties
index fd896e71..cf5a76b8 100644
--- a/org.eclipse.m2e.scm/plugin.properties
+++ b/org.eclipse.m2e.scm/plugin.properties
@@ -23,3 +23,4 @@ m2.wizard.materialize.name=Materialize Maven Projects
m2.wizard.materialize.description=Materialize Maven Projects
m2.popup.MaterializeAction=Import Project(s)
+m2.popup.MaterializeAction2=Materialize Project(s)
diff --git a/org.eclipse.m2e.scm/plugin.xml b/org.eclipse.m2e.scm/plugin.xml
index 043890f6..eb13ddf3 100644
--- a/org.eclipse.m2e.scm/plugin.xml
+++ b/org.eclipse.m2e.scm/plugin.xml
@@ -32,7 +32,27 @@
</not>
</and>
</enablement>
+ </objectContribution>
+ <objectContribution id="org.eclipse.m2e.ui.repositoryViewMenu.materializeAction"
+ objectClass="org.eclipse.m2e.core.ui.internal.views.nodes.IndexedArtifactFileNode"
+ adaptable="true">
+ <action id="org.eclipse.m2e.materializeAction"
+ class="org.eclipse.m2e.scm.internal.actions.MaterializeAction"
+ label="%m2.popup.MaterializeAction2"
+ icon="icons/import_m2_project.gif"
+ style="push"
+ menubarPath="open"
+ enablesFor="+"/>
+ <enablement>
+ <and>
+ <test property="org.eclipse.m2e.hasArtifactKey"/>
+ <not>
+ <test property="org.eclipse.m2e.hasProjectArtifactKey"/>
+ </not>
+ </and>
+ </enablement>
</objectContribution>
+
</extension>
<extension point="org.eclipse.ui.newWizards">

Back to the top