简体   繁体   English

如何获得有关定制Eclipse产品的Java观点

[英]How to get Java perspective on custom Eclipse product

I created a simple eclipse plugin that just opens a new view from a command in the menu. 我创建了一个简单的eclipse插件,可以从菜单中的命令打开一个新视图。 I am using Eclipse RCP 2018 and when I run the plugin as an application everything looks exactly the same as the java perspective with the menu option added (which is what I want). 我正在使用Eclipse RCP 2018,当我将插件作为应用程序运行时,一切看起来都与添加菜单选项的Java透视图完全相同(这就是我想要的)。

When I create a product and run, it looks like a lot of options are gone (eg no java perspective, can't make a java project, no source option, no refactor, no run, can't change it to dark theme, etc). 当我创建产品并运行时,似乎有很多选择都消失了(例如,没有Java透视图,无法创建Java项目,没有源选项,没有重构,没有运行,无法将其更改为深色主题,等等)。 My custom view/menu is still there but I want it to basically be an addition to what was already there like when I launch it as an application. 我的自定义视图/菜单仍然存在,但是我希望它基本上是对我作为应用程序启动时已经存在的视图的补充。 Is there certain settings or files I can edit to accomplish this? 我可以编辑某些设置或文件来完成此操作吗?

Probably you do not need your own product definition but just want to add your plugins to Eclipse IDE product. 可能您不需要自己的产品定义,而只想将插件添加到Eclipse IDE产品中。 In that case you need to select "org.eclipse.sdk.ide" product to run and ensure your plugins are selected in launch configuration. 在这种情况下,您需要选择“ org.eclipse.sdk.ide”产品来运行,并确保在启动配置中选择了您的插件。

If you do need your own product definition for some reason (to show your own branding for example) and still need some functionality from Eclipse IDE - you need to add either features (preferable) or bundles to your product definition. 如果出于某种原因确实需要自己的产品定义(例如,显示自己的品牌),并且仍然需要Eclipse IDE的某些功能-您需要向产品定义中添加功能(优选)或捆绑销售商品。

More details here 在这里更多细节

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM