[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Menu, commands, actions, and OSX
|
- From: J Michael Dean <mdean77@xxxxxxxxxxx>
- Date: Tue, 08 Sep 2009 07:16:32 -0600
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- Thread-index: AcowhpUtx4rTy8Se7UKxjrIJqNHYyw==
- Thread-topic: Menu, commands, actions, and OSX
- User-agent: Microsoft-Entourage/12.20.0.090605
I don't actually want to alter the way the OS X application is built because
it is expected to have this menu on Macintosh. What I don't understand is
why these two actions are not fired when the menu items are selected. I
have declared the "about" and "perspectives" in plugin.xml and they function
correctly from other menus, but they are automatically placed in this extra
menu when the OSX version is created, and they are not functional.
I have also registered the about action in ApplicationActionBarAdvisor and
this did not have an impact on the behavior.
- Mike
On 9/8/09 7:00 AM, in article h85ki5$dqa$1@xxxxxxxxxxxxxxxxx, "Marcus
Ilgner" <marcus.ilgner@xxxxxxxx> wrote:
> 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