简体   繁体   English

如何以编程方式自定义eclipse透视图?

[英]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 我想在我对视角进行右键单击时选择自定义来获得此窗口

在此输入图像描述

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 ? 实际上,我只想在我的视角中删除大多数菜单和工具栏,当我改变其他任何视角时让它们再次出现你能帮助我吗?

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. 此外,屏幕截图中的UI代码可在此处获得 ,并且可能包含有关如何执行此操作的一些有用提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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