Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Declarative menu entry for help system
Declarative menu entry for help system [message #494703] Mon, 02 November 2009 09:33 Go to next message
Bjoern Berg is currently offline Bjoern BergFriend
Messages: 47
Registered: November 2009
Location: Essen
Member
I have a problem defining a declarative entry in the menu for "Help Contents" in my own RCP application. When I define the menu entry and start the RCP application the entry is grayed out although all needed packages are defined. In plugin.xml this looks like:

<menu
id="de.genesys_e.experience.ui.menu.help"
label="%helpMenu.label"
tooltip="%helpMenu.toolTip">
<command
commandId="org.eclipse.ui.help.helpContents"
label="%helpContents.label"
style="push"
tooltip="%helpContents.toolTip">
</command>
[...]
</menu>

When I define additionally a command for "Help Contents" using the Default Handler "org.eclipse.ui.internal.handlers.DisplayHelpHandler" i can call the help menu:

<command
defaultHandler="org.eclipse.ui.internal.handlers.DisplayHelpHandler "
id="org.eclipse.ui.help.helpContents"
name="Help Contents">
</command>

But Eclipse tells me, that the access to the referenced class is discouraged.

So, what is wrong?

Björn
Re: Declarative menu entry for help system [message #494705 is a reply to message #494703] Mon, 02 November 2009 09:46 Go to previous messageGo to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey Bj,

i had the same problem, so i used the command

"org.eclipse.ui.help.displayHelp"

I´m not sure what the difference is, but this works for me and also displays the help contents...

Greetz
Thomas
Re: Declarative menu entry for help system [message #494708 is a reply to message #494705] Mon, 02 November 2009 09:55 Go to previous message
Bjoern Berg is currently offline Bjoern BergFriend
Messages: 47
Registered: November 2009
Location: Essen
Member
Thanks for the fast response. Works perfectly. Very Happy
Previous Topic:Dynamically change the menu label
Next Topic:Making an RCP of existing projects.
Goto Forum:
  


Current Time: Thu Mar 28 22:46:58 GMT 2024

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

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

Back to the top