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

Bug 458377

Summary: Unable to add new items to References/Declarations submenu
Product: [Eclipse Project] JDT Reporter: Simon Laffoy <simon.laffoy>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.5   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug

Description Simon Laffoy CLA 2015-01-26 03:38:07 EST
I am interested in adding new items to the References/Declaration submenu so that they show up alongside Workspace, Project, Hierarchy, etc.

I have already discovered a method to add my items to the corresponding menu in the main menu bar (for example adding a sub menu item to Search-> References->...), but am unable to extend this technique to the context menu.

That being said, the way to extend the org.eclipse.ui.actionSets menus seems very fragile; I believe that it would cause errors if another plug-in were to use the same method to add its own submenu items to the same menu item that I did.

Is there a way to use the org.eclipse.ui.menus extension point to achieve what I want? It seems that this extension point doesn't suffer from the same problem as the actionSets extension point, i.e., multiple extensions won't interfere.

Here is a link for my original request for information, including the outline of my solution for adding sub items to the main menu. https://www.eclipse.org/forums/index.php/t/958334/

Here is a link to the blog post where I found the technique to add sub menu items to the menu bar. http://www.nihamkin.com/2013/02/16/how-to-add-items-into-eclipse-s-refactor-menu/
Comment 1 Eclipse Genie CLA 2020-04-30 00:39:59 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.