简体   繁体   中英

How to display popup menu in Eclipse E4 MPart

In Eclipse E4, detached view option is not available but this is very important requirement for our project, So i want to add popup menu in MPart to provide the functionality.

Please guide me how can i add popup menu in MPart. I tried adding it in application model but it seems i am doing something wrong.

Thanks in Advance!

Add a popup menu and handled menu item to the MPart in your .e4xmi Make sure you get the id's correct. The handler will be the code you want to run

see here for an example:

http://www.vogella.com/tutorials/EclipseRCP/article.html#menuadvanced_popup

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