Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338411

Summary: "Run As" "Debug As" "Profile As" disappearing from Project Explorer Context Menu
Product: [Eclipse Project] Platform Reporter: Missing name <kathy.turetzky>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pawel.1.piech, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Archive Zipped file - exported General Project none

Description Missing name CLA 2011-02-28 08:59:12 EST
Build Identifier: M2010211-1343

The "Run As" "Debug As" "Profile As" menu item appeared the first time the Project Explorer's context menu was shown and thereafter, it did not show.  I found a link that matched my exact problem http://www.sigasi.com/content/run-menu-item-strangely-disappearing-context-menu#comments
In my case, I wanted to not have the "Run As" "Debug As" "Profile As" to display at all so I tried the solution as one user commented in the above link:
I have an RCP application which was showing exactly the same behavior. However I wanted that the Run As menu never show up because my application doesn't need it. I managed to do that by setting the debug plugins to load on startup by updating my runtime configuration.

So I changed the org.ecliopse.debug.ui to a auto-start of true which did fix the problem of the "Run As" "Debug As" "Profile As" not displaying on the context menu.  However, I do not want org.eclipse.debug.ui to be set to auto-start of true and feel this is not a good solution.  The determination as to whether these menu items appear should be implemented so the org.eclipse.debug.ui does not have to be auto-start true if you don't want the menu items to appear at all.



Reproducible: Always

Steps to Reproduce:
1.Set up a RCP application
2.Display the context menu from Project Explorer
3.Run As menu item appears
4.Select context menu again
5.Run As menu item is not shown
Comment 1 Missing name CLA 2011-02-28 09:18:13 EST
Created attachment 189942 [details]
Archive Zipped file - exported General Project

I have attached an exported zipped file that contains a simple General Project in which this problem occurs.
Comment 2 Pawel Piech CLA 2011-02-28 13:26:09 EST
Have you tried defining a capability and filtering out the menu contribution that way?
Comment 3 Missing name CLA 2011-03-01 08:49:02 EST
Defining a capability where?
Comment 4 Pawel Piech CLA 2011-03-01 09:53:12 EST
(In reply to comment #3)
> Defining a capability where?

In your product (org.eclipse.ui.activities).  I actually don't know a whole lot about it except that we use it in our product to filter out some of the UI contributions which are not relevant for us.
Comment 5 Missing name CLA 2011-03-01 10:15:11 EST
Thanks...will do that.
Comment 6 Pawel Piech CLA 2011-03-21 18:51:37 EDT
I'm marking as won't since we can't fix this without activating the debug plugins early.