简体   繁体   中英

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. 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).

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). 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. In that case you need to select "org.eclipse.sdk.ide" product to run and ensure your plugins are selected in launch configuration.

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.

More details here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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