Skip to content

Commit

Permalink
Remove Maven Build shortcut
Browse files Browse the repository at this point in the history
Now we show the launch configs in the menu already, the Run As > Maven
Build can be removed as it is obsolete now:

- if no config is there it is equivalent to the dialog variant
- if there is a config it is already shown as menu item
  • Loading branch information
laeubi committed Jun 27, 2023
1 parent 452b93f commit 289595f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
23 changes: 0 additions & 23 deletions org.eclipse.m2e.launching/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,6 @@
</extension>

<extension point="org.eclipse.debug.ui.launchShortcuts">
<shortcut id="org.eclipse.m2e.core.pomFileAction"
class="org.eclipse.m2e.actions.ExecutePomAction"
icon="icons/m2.gif"
label="%m2.popup.pomFile.label"
modes="run,debug">
<contextualLaunch>
<contextLabel label="%m2.popup.pomFile.label" mode="run"/>
<contextLabel label="%m2.popup.pomFile.label" mode="debug"/>
<enablement>
<count value="1"/>
<iterate>
<or>
<adapt type="org.eclipse.core.resources.IFile">
<test property="org.eclipse.core.resources.name" value="pom.xml"/>
</adapt>
<adapt type="org.eclipse.core.resources.IProject">
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.m2e.core.maven2Nature"/>
</adapt>
</or>
</iterate>
</enablement>
</contextualLaunch>
</shortcut>
<shortcut id="org.eclipse.m2e.core.pomFileActionWithDialog"
class="org.eclipse.m2e.actions.ExecutePomAction:WITH_DIALOG"
icon="icons/m2.gif"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension,
private String goalName = null;

public void setInitializationData(IConfigurationElement config, String propertyName, Object data) {
System.out.println("ExecutePomAction.setInitializationData()");
if("WITH_DIALOG".equals(data)) { //$NON-NLS-1$
this.showDialog = true;
} else {
Expand Down

0 comments on commit 289595f

Please sign in to comment.