Question

OS X 10.7.5, Eclipse 4.3 Kepler build ID 20130919-0819, Java 1.7.0_51

I'm following along the Vogel tutorial, and I've hit a snag that I can't figure out. I'm in the section covering commands and handlers menu items, etc. I've created the five commands and handlers that he suggests, but one of them, Exit, does not show up on in my menu. I have the two top-level menus, File and Edit, and Edit contains all three of the entries that it's supposed to. The File menu, however, has only the Save entry. AFAICT (and I've looked it over many times) all of my entries are as the tutorial suggests. I looked at the XMI view, and everything there looks ok, by which I mean that there's nothing obviously different with the Exit entries compared to those for Save.

If I start with an empty File menu and try to add Exit (leaving out the Save), the entire File menu does not appear on the menu bar.

Can you suggest what might be wrong, or what to look for?

tia, g

Était-ce utile?

La solution

Eclipse handles OS X specially and moves a few menu items around to match the OS X standards. The Exit menu item will be in the 'Application' menu (the furthest left with your application name).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top