How to customize eclipse perspective programmatically?

故事扮演 提交于 2020-01-12 19:01:28

问题


I want to make the same behavior I got when I do a right click on a perspective and choose customize to get this window

I want to customize menus and toolbars for my perspective only programmatically.

Actually, I want to remove most menus and toolbars in my perspective only and let them show up again when I change to any other perspective Can you please help me with this ?


回答1:


This guide shows how to customise toolbars programmatically based on the current perspective, and hints that the solution for menus is very similar.

Also, the code for the UI in your screenshot is available here, and might contain some useful hints at how to do it.



来源:https://stackoverflow.com/questions/12159834/how-to-customize-eclipse-perspective-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!