[英]Eclipse: Context Menu
How can I customize the items in the context Menu "New" (Screenshot)? 如何自定义上下文菜单“新建”(屏幕截图)中的项目?
I want to have there an option for "New Class", "New Package", ... 我想有一个“新类”,“新包装”,...的选项。
Is this realizable? 这可以实现吗?
Yes, you have to change the Perspective (for example, to Java
) on the right-hand side of the IDE. 是的,您必须在IDE的右侧更改Perspective(例如,更改为
Java
)。
Checkout the screenshot: 查看屏幕截图:
If you don't see on the right-hand side, you can navigate to 如果您没有在右侧看到,则可以导航至
Window -> Open Perspective -> Other -> Java
and then you will have a different context menu. 然后您将拥有一个不同的上下文菜单。
Its not required to switch your perspective, you can bring the same menu items in your current perspective by customizing it. 不需要切换视角,可以通过自定义将相同的菜单项带入当前视角。
Click Windows > Customize perspective
. 单击
Windows > Customize perspective
。
Go to Shortcuts tab enable the required Java element here. 转到“ 快捷方式”选项卡,在此处启用所需的Java元素。 Similarly go to Menu Visibility tab, Enable the required Java items under
File > New
node. 同样,转到菜单可见性选项卡,在
File > New
节点下启用所需的Java项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.