Is it possible to extend Eclipse Search Menu

前端 未结 3 1292
庸人自扰
庸人自扰 2021-01-13 13:14

right now in eclipse it is not possible to extend Menu defined by Other plugins by using eclipse extension: org.eclipse.ui.menus.

I want to add one menu item in Sear

3条回答
  •  忘掉有多难
    2021-01-13 13:35

    Update August 2012, as commented by reprogrammer, org.eclipse.ui.actionSets is deprecated:

    Instead, use the extension point org.eclipse.ui.commands.


    Original answer (August 2011)

    The actionSet (extension point="org.eclipse.ui.actionSets") with an action on 'menubarPath="org.eclipse.search.menu/dialogGroup"' recommended by Manuel Selva is the official solution, in line with general menu contribution.

    But beware of some issue that might still lingering for Search menu contribution, as illustrated by this thread around the (supposedly fixed) bug 15684:
    (it was in 2009, hopefully the issue has been addressed since)

    What actually does work is redefining the whole Search Menu as in the workaround that is still currently used in JDT 3.6:

       
          
    
    
    
    
    
             
                       
                               
                     
                     
                     
                     
             
    
    

提交回复
热议问题