| Summary: | Run as context menu vanishes in project explorer | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Christian Pontesegger <christian.pontesegger> |
| Component: | Debug | Assignee: | Platform-Debug-Inbox <platform-debug-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | darin.eclipse |
| Version: | 3.4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Christian Pontesegger
Found the solution for myself: LaunchablePropertyTester failed at if (((LaunchManager)(DebugPlugin.getDefault().getLaunchManager())).launchModeAvailable((String)expectedValue)) This happened because I only had a LaunchShortcut registered. The check above needs at least 1 launchConfigurationType for the specific mode (run, debug profile) where we want to see the context menu entry. So adding a launchConfigurationType fixes this issue. Maybe something for the documentation? (In reply to comment #1) > Found the solution for myself: > LaunchablePropertyTester failed at > if > (((LaunchManager)(DebugPlugin.getDefault().getLaunchManager())).launchModeAvailable((String)expectedValue)) > This happened because I only had a LaunchShortcut registered. The check above > needs at least 1 launchConfigurationType for the specific mode (run, debug > profile) where we want to see the context menu entry. > So adding a launchConfigurationType fixes this issue. > Maybe something for the documentation? In this case it looks like there were no launch configuration types at all... i.e. nothing to support the launch mode. This sounds rare... usually a launch shortcut and a launch configuration type go together. What is the use case where you would have a launch shortcut, but not launch configuration types? (In reply to comment #2) > In this case it looks like there were no launch configuration types at all... > i.e. nothing to support the launch mode. Correct. There were no launch configurations provided by my plugins and obviously no framework bundle providing one. > What is the use case where you would have a launch shortcut, but > not launch configuration types? I was playing around with Rhino.Therefore II added a launch shortcut for JavaScript files. Thats all. I agree, might be a rare use case. Still I ran into it and maybe others will too. Now it's documented here, maybe it should go to launch shortcut documentation too - thats up to you :) Marking as works for me for now. If there are no launch configration types contributed, there is nothing to launch (from the debug platform's perspective), and thus the actions should not appear. However, I did add the folllowing text to the extension point doc: "No launch shortcuts are provided by the platform. Note that although launch shortcuts do not have to be associated with a specific launch configuration type, launch shortcut menus will not appear unless there is at least one launch configuration type that supports a shortcut's launch mode(s)." |