Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » about dialog menu entry
about dialog menu entry [message #515278] Thu, 18 February 2010 10:49 Go to next message
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
Hi,
I've inserted the command in a menu of my application to show the about dialog, but the menu entry is not shown. Here there's the excerpt of my plugin.xml file:

<menu
               id="hrpm.rcp.menu.aiuto"
               label="Aiuto"
               mnemonic="A">
            <command
                  commandId="org.eclipse.ui.help.about"
                  icon="img/info.png"
                  id="hrpm.rcp.menu.aiuto.about"
                  label="Informazioni sull&apos;applicazione"
                  style="push"
                  tooltip="Visualizza le informazioni di rilascio di questa applicazione">
            </command>
         </menu>


so the menu "Aiuto" is visible, but the entry of the about dialog is not visible. Am I missing something?
Re: about dialog menu entry [message #515322 is a reply to message #515278] Thu, 18 February 2010 13:41 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 18.02.2010 11:49, Luca Ferrari wrote:
> Hi,
> I've inserted the command in a menu of my application to show the about
> dialog, but the menu entry is not shown. Here there's the excerpt of my
> plugin.xml file:
>
>
> <menu
> id="hrpm.rcp.menu.aiuto"
> label="Aiuto"
> mnemonic="A">
> <command
> commandId="org.eclipse.ui.help.about"
> icon="img/info.png"
> id="hrpm.rcp.menu.aiuto.about"
> label="Informazioni sull&apos;applicazione"
> style="push"
> tooltip="Visualizza le informazioni di rilascio di questa applicazione">
> </command>
> </menu>
>
>
> so the menu "Aiuto" is visible, but the entry of the about dialog is not
> visible. Am I missing something?

Your description misses several elementary details: What kind
of extension point are you using? I would have expected that
you use "org.eclipse.ui.menus", but your xml does not look so.

Greetings from Bremen,

Daniel Krügler
Re: about dialog menu entry [message #515329 is a reply to message #515322] Thu, 18 February 2010 14:02 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 18.02.2010 14:41, Daniel Krügler wrote:
> On 18.02.2010 11:49, Luca Ferrari wrote:
>> Hi,
>> I've inserted the command in a menu of my application to show the about
>> dialog, but the menu entry is not shown. Here there's the excerpt of my
>> plugin.xml file:
>>
>>
>> <menu
>> id="hrpm.rcp.menu.aiuto"
>> label="Aiuto"
>> mnemonic="A">
>> <command
>> commandId="org.eclipse.ui.help.about"
>> icon="img/info.png"
>> id="hrpm.rcp.menu.aiuto.about"
>> label="Informazioni sull&apos;applicazione"
>> style="push"
>> tooltip="Visualizza le informazioni di rilascio di questa applicazione">
>> </command>
>> </menu>
>>
>>
>> so the menu "Aiuto" is visible, but the entry of the about dialog is not
>> visible. Am I missing something?
>
> Your description misses several elementary details: What kind
> of extension point are you using? I would have expected that
> you use "org.eclipse.ui.menus", but your xml does not look so.

Sorry, I misread your xml assuming it would start with the
menuContribution element. I assume that you need to use

"org.eclipse.ui.help.aboutAction"

as command id.

- Daniel
Re: about dialog menu entry [message #515386 is a reply to message #515278] Thu, 18 February 2010 15:54 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Luca Ferrari wrote:

> <command
> commandId="org.eclipse.ui.help.about"

Daniel is correct, that's not the right ID. 2 helpful hints.

1) When adding a commandId, use the Browse... button. You can type in
*about and it will narrow down the valid IDs for you.

2) you can use org.eclipse.ui.IWorkbenchCommandConstants in 3.5 and 3.6
to find the most common commands that we've published.

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: about dialog menu entry [message #515399 is a reply to message #515386] Thu, 18 February 2010 16:40 Go to previous message
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
Thank you, I was using the wrong command id!
Previous Topic:Show Headless RCP application output in cmd.exe (not osgi console)
Next Topic:Product export - osgi.bundle missing
Goto Forum:
  


Current Time: Thu Nov 27 00:29:32 GMT 2014

Powered by FUDForum. Page generated in 0.01808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software