|
Re: Cheatsheet help: What is the contextId syntax? [message #270688 is a reply to message #269737] |
Wed, 08 September 2004 20:02 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03364 seconds