开发者

How to hide "Preferences" item in Mac application menu

开发者 https://www.devze.com 2023-01-08 10:03 出处:网络
I have an application built atop the Eclipse rich-client platform. It does not yet have any user preferences.

I have an application built atop the Eclipse rich-client platform. It does not yet have any user preferences.

Currently on the Mac, the "Preferences" menu item开发者_如何学运维 in the application menu is enabled, but does nothing.

Is there an easy way to hide or disable it?


In case anyone else runs into the same problem, I chose a simple solution to the root problem -- show the Preferences dialog.

Even in the absence of application-layer user preferences, there were still preferences panels contributed by the help plug-ins.

With the current implementation of org.eclipse.ui.internal.carbon.CarbonUIEnhancer, the application-menu "Preferences" item requires and executes a preferences menu item elsewhere in the menus (e.g., ActionFactory.PREFERENCES).

0

精彩评论

暂无评论...
验证码 换一张
取 消