Eclipse 存在很多的扩展点:
1. org.eclipse.ui.actionSets
<actionSet>
给 Eclipse 增加主菜单和工具栏 (Workbench Window Actions)
implements IWorkbenchWindowActionDelegate
2. org.eclipse.ui.popupMenus
给 Eclipse 增加上下文右键菜单
<objectContribution>
针对选择的对象不同,显示上下文菜单 (Object Action)
implements IViewActionDelegate
<viewerContribution>
针对在不同的View里面,显示上下文菜单 (View Actions)
比如: targetID – “org.eclipse.jdt.ui.MembersView”
implements IViewActionDelegate
可以专门针对编辑器的上下文菜单 (Editor
1. org.eclipse.ui.actionSets
<actionSet>
给 Eclipse 增加主菜单和工具栏 (Workbench Window Actions)
implements IWorkbenchWindowActionDelegate
![](https://p-blog.csdn.net/images/p_blog_csdn_net/subchen/2007-11-01_120614.png)
2. org.eclipse.ui.popupMenus
给 Eclipse 增加上下文右键菜单
<objectContribution>
针对选择的对象不同,显示上下文菜单 (Object Action)
implements IViewActionDelegate
<viewerContribution>
针对在不同的View里面,显示上下文菜单 (View Actions)
比如: targetID – “org.eclipse.jdt.ui.MembersView”
implements IViewActionDelegate
![](https://p-blog.csdn.net/images/p_blog_csdn_net/subchen/2007-11-01_120448.png)
可以专门针对编辑器的上下文菜单 (Editor