Community
Participate
Working Groups
Logic diagram context menu shows items irrelevant to the diagram, such as 'Run As', 'Debug As', 'Profile As', etc.
These Run On Server , Debug On Server show up on every popup. Do they come from WTP?
The Run As > menus come from the platform, and then the enablement/visibility of the various submenus (e.g. Run on Server) are based on the type of object that is selected. If you do not want Run As menu items to appear at all, then I think you need to make sure that the selection objects do not implement/adapt to ILaunchable from org.eclipse.core.debug.
Wouldn't that remove the editor-based contributions? The trouble is not removing the entire Run/Debug menus but removing the Run on Server, debug on Server. I am still curious as to why Run on Server/Debug on Server are contributed so broadly to all editors (they seem to be on the editor contribution actions list).
The issue is a little bigger than just Run As / Debug As / Profile As Other menu items are appearing: Validate Team -> Apply Patch.... (etc.) Compare with -> Replace With -> These same menus appear on the shapes example in base GEF as well.
Created attachment 49109 [details] Patch that removes invalid contributed items. This patch adds capability for clients to exclude items from their context menus ('filter'). By default, certain invalid entries have already been provided to be filtered (for example, 'Run as', 'Debug As', etc.) Class affected: 1. org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider
Committed the patch .
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug