| Summary: | Allow for multiple targetID to be specified under one poupmenu contribution | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Andrew Flatt <aflatt> |
| Component: | IDE | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 3.4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Andrew Flatt
We won't change the org.eclipse.ui.popupMenus extension. That's already deprecated in 4.x, and has been "secondary" in 3.x since 3.3. But just FYI, there's an #AbstractTextEditorContext that's common to both "#TextEditorContext" and "#CompilationUnitEditorContext". Similar thing for #TextRulerContext. In org.eclipse.ui.menus/menuContribution it is possible to do what you want, either by placing a submenu in all the locations you want, then the contents of the submenu are in one place only, or by placing your command contributions in the popup.any location (all popups) and then adding a visibleWhen that checked org.eclipse.ui.ISources.ACTIVE_MENU_NAME contains the correct ID PW |