gpt4 book ai didi

eclipse - 从 Eclipse 菜单 Window -> Show View 中删除 View 名称

转载 作者:行者123 更新时间:2023-12-02 18:40:47 25 4
gpt4 key购买 nike

我需要删除从“窗口”->“显示 View ”菜单创建的 View 的名称/快捷方式,并将它们添加为单独的菜单。

有什么方法可以从“窗口”->“显示 View ”菜单中隐藏/删除其条目。

最佳答案

您可以从“自定义透视图”/“菜单可见性”选项卡的“显示 View ”菜单中添加/删除任何 View :

http://img8.i_mageshack.us/img8/3854/menuvisibility.png

<小时/>

以编程方式执行相同的操作意味着遵循与类 org.eclipse.ui.internal.dialogs.CustomizePerspectiveDialog 相同的操作过程。 ,并查看方法 okPressed() 例如:

perspective.setShowViewActionIds(menu.getCheckedItemIds());
<小时/>

Vlad Ilie 提到in the comments :

as I only needed for the View to be completely inaccessible via usual GUI, activities were enough for me as per this blog post "eEclipse Activities – Hide / Display certain UI elements":

This would mean that programmatically the WorkbenchActivitySupport.setEnabledActivityIds(String[]) method can be used to enable or disable views after they've been introduced into an activity.

关于eclipse - 从 Eclipse 菜单 Window -> Show View 中删除 View 名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1768411/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com