[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Menu, commands, actions, and OSX

Hi,

to use some commands, e.g. reset perspective you need to activate them via the ActionFactory. Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=283234

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter

J Michael Dean wrote:
I have always used the ApplicationActionBarAdvisor to create my menus with
actions, first creating the actions in makeActions and then filling up the
menu in fillMenuBar.  On OSX, the RCP has an additional menu to the left of
anything created by this method, in keeping with that platform's standard
(which is to have the Apple menu first, and a menu named the same as the
application second, and then all the menus that are created by fillMenuBar.)

I am now trying to go to commands and handlers, as numerous people advocate,
and I must admit that I like it very much.  Simpler than actions, I think.
However, when I add minimal menu contributions, etc., my application still
has an "About the application" and "Preferences ..." in the second window
that is named "My Application".  These selections do not do anything, even
though I have an "about" and "preferences" selection in other parts of the
menu system, which are handled with commands and handlers.

How do I access this menu that is created behind the scenes?  Or am I
misguided to try to switch to commands and handlers?  (It worked before, but
I was trying to see how this would work.)

- Mike