Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize eclipse perspective programmatically?

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

enter image description here

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 ?

like image 996
becks Avatar asked Aug 28 '12 13:08

becks


1 Answers

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.

like image 162
Sinjo Avatar answered Oct 13 '22 01:10

Sinjo