问题
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