Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Cheatsheet help: What is the contextId syntax?
Cheatsheet help: What is the contextId syntax? [message #269737] Wed, 01 September 2004 21:19 Go to next message
Frank Parrott is currently offline Frank ParrottFriend
Messages: 52
Registered: July 2009
Member
Hi,

I'm creating a cheatsheet, where I would like to use the 'contextId' to
popup some help.
I don't know what a 'contextId' should look like. I've reference Platform
Plug-in Developer Guide and looked at the other cheatsheets for examples,
but haven't found any that are using this.

Any examples, pointers on how to use the 'contextId' with cheatsheets is
greatly appreciated.

Regards,
frank
Re: Cheatsheet help: What is the contextId syntax? [message #270688 is a reply to message #269737] Wed, 08 September 2004 20:02 Go to previous message
Eclipse UserFriend
Originally posted by: lparsons_no_spamie.ibm.com

"Frank Parrott" <fparrott@cisco.com> wrote in news:ch5e75$1bk$1
@eclipse.org:


There are examples of this in the Pattern cheat sheet in the test
project.

1. Connect to the Eclipse CVS repository using the steps here:
http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_7

2. Check Out the org.eclipse.ui.tests.cheatsheets project

3. In the plugin.xml the following is defined to step up the contexts
<extension point="org.eclipse.help.contexts">
<contexts file="contexts.xml"/>
</extension>

4. In the plugin.xml the following cheatsheet is defined:
<cheatsheet
name="Testing Infopop and Help Links"

category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat "
contentFile="cheatsheets/tests/TestInfopop_Help.xml"
id="org.eclipse.ui.tests.cheatsheets.infopop.help">
<description>
This cheat sheet has items to test the framework
</description>
</cheatsheet>

5. Look at the Infopop/Help test cheat sheet found here:
/org.eclipse.ui.tests.cheatsheets/cheatsheets/tests/TestInfo pop_Help.xml

6. The following defines an item that shows infopop when the help button
is pressed:
<item
title="Display the gathered data and additional parameters"
contextId="org.eclipse.ui.tests.cheatsheets.test_cheatsheets ">
<description>
Try the help link, you should see an infopop with some sample text.
</description>
</item>

7. The following defines an item that shows a help topic in the help
system when the help button is pressed:
<item
title="Test help link"
href="/org.eclipse.platform.doc.user/concepts/chelpsys.htm" >
<description>
Try the help link, you should see the concepts for the help system.
</description>
</item>


Later,
Lorne
Previous Topic:Create new project at external location doesn't work
Next Topic:adding a menu item - need to turn another one off
Goto Forum:
  


Current Time: Fri Apr 26 15:25:40 GMT 2024

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

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

Back to the top