diff options
author | Milos Kleint | 2011-02-25 09:23:13 +0000 |
---|---|---|
committer | Milos Kleint | 2011-02-25 09:26:24 +0000 |
commit | da00d17351966b1f8cb96edf598645161380c292 (patch) | |
tree | 4858338e37455a82e951737ad8a3f9c3ee1588d0 /org.eclipse.m2e.scm | |
parent | 5a6a6796c34ef24b3fdb4e428142d90acc6fb488 (diff) | |
download | m2e-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.properties | 1 | ||||
-rw-r--r-- | org.eclipse.m2e.scm/plugin.xml | 20 |
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"> |