Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cheat sheet menu item "not currently available"
Cheat sheet menu item "not currently available" [message #467132] Sat, 28 April 2007 12:05 Go to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
I have begun adding cheat sheets to my RCP application. I found out how
to add the menu item:

http://www.eclipsezone.com/forums/thread.jspa?messageID=9202 7201&#92027201

I added my cheat sheet but when ever I select the Help | Cheat Sheets...
menu item I get the message "The chosen operation is not currently
available" message.

When I display the Cheat Sheets view from my view menu (using the Show
View dialog box) the cheat sheets view menu comes up and in the view's
menu my cheat sheet appears - and works.

I just do not understand why the menu item does not work.

In my application defining plug-in I have this:
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="org.eclipse.ui.cheatsheets.actionSet"
label="Cheat Sheats"
visible="true">
<action

class="org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory "

id="org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction "
label="&amp;Cheat Sheets..."
menubarPath="help/group.tutorials"/>
</actionSet>
</extension>

The menubarPath does exist - I created it in my application's
ActionBarAdvisor and the menu does have the expected "Cheat Sheets..."
menu item.

Any help or advice would be appreciated.

Ian
Re: Cheat sheet menu item "not currently available" [message #467207 is a reply to message #467132] Tue, 01 May 2007 01:07 Go to previous messageGo to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
I still cannot see why my menu item generates this error - any thoughts?

Ian
Solved Re: Cheat sheet menu item "not currently available" [message #467209 is a reply to message #467132] Tue, 01 May 2007 01:26 Go to previous messageGo to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
I was reviewing the real code mentioned in the other post (in the sdk
plug-in) and realized I missed the all important ":helpMenuAction" from
the class name.

It should have been:

<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="org.eclipse.ui.cheatsheets.actionSet"
label="Cheat Sheats"
visible="true">
<action

class=" org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMe nuAction "

id="org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction "
label="&amp;Cheat Sheets..."
menubarPath="help/group.tutorials"/>
</actionSet>
</extension>
Re: Solved Re: Cheat sheet menu item "not currently available" [message #467325 is a reply to message #467209] Thu, 03 May 2007 08:07 Go to previous message
Muthu is currently offline MuthuFriend
Messages: 3
Registered: July 2009
Junior Member
Hi
I think for getting cheatsheet menu u need to add 3 plugins (go to
Runmenu from there u should select Run).just add the following plugins u
will get the cheetsheet menu
1.org.eclipse.sdk
2.org.eclipse.search
3.org.eclipse.ui.cheatsheet

Here i paste the sample code for getting cheatsheets.


<?xml version="1.0" encoding="UTF-8"?>
<cheatsheet title=" UI">
<intro >
<description>
This cheat sheet is a demo.
</description>
</intro>
<item title="BUISNESS RULES" >
<description>
Buisness rules makes it easy for developers to display
professional quality charts in their applications.
</description>
</item>
</cheatsheet>


After done the xmlfile just make it as a jar file and paste it in the
eclipse plugin directory.
Regards
Muthu
Previous Topic:Help with basic concept!
Next Topic:How to access a view from another view?
Goto Forum:
  


Current Time: Wed Sep 25 12:08:48 GMT 2024

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

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

Back to the top