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

On 08.09.09 07:38, Lars Vogel wrote:
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


Also, in case you're building your menus declaratively, you may want to include some conditional code in your plugin.xml like so:


[inside a <menuContribution> element]

<command commandId="org.eclipse.ui.file.exit">
    <visibleWhen>
        <not>
            <systemTest property="os.name" value="Mac OS X">
            </systemTest>
        </not>
    </visibleWhen>
</command>

Best regards
Marcus