| Summary: | Inappropriate "Run As" options for Java class | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Wayne Beaton <wayne.beaton> | ||||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | igor, snjezana.peco | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Wayne Beaton
This is a bug, m2e launch actions should only be enabled for pom.xml files and their immediate IContainers. and I swear I tested this exact scenario and did not have these menu items. but now they are there. a mystery. Created attachment 196284 [details] proposed fix The problem only happens when m2e was not activated and this is why I missed it in my tests. Attached patch changes Maven launch shortcut enablement to behave correctly regardless of m2e bundles activation state. See patch comment for more details about the problem and the solution. Also opened follow-up bug 346803 to review other possible cases where enablement may behave unexpectedly when m2e bundles are not active. You could solve that problem using the forcePluginActivation argument. For instance: ... <test property="org.eclipse.m2e.launchable" forcePluginActivation="true"/> ... See https://bugs.eclipse.org/bugs/show_bug.cgi?id=130338 No. This would force pretty much unconditional eager activation of m2e.core.ui and possibly m2e.core bundles. We don't want that. Pushed my changes. http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=07ade30212d3d27c405a28d1d24dad850c9dbd12 |