Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Not recognising helpdata.xml
Not recognising helpdata.xml [message #619458] Fri, 29 August 2008 09:26
Phill Perryman is currently offline Phill PerrymanFriend
Messages: 214
Registered: July 2009
Senior Member
This is a multipart message in MIME format.
--=_alternative 0033D293802574B4_=
Content-Type: text/plain; charset="US-ASCII"

I have added the following nodes in my RCP ApplicationWorkbenchAdvisor
class (see below). Welcome works fine but it is not recognising the
helpData. I don't use a plugin_customisation file so programmatically add
the nodes.

In the root of the project (which is the main rcp project plugin) I have a
helpData.xml file with the following contents. I want the main application
help contents to appear first followed by the other help tocs. The main
help toc is in the com.mitel.swb.help project called toc.xml and is marked
as primary and appears in the help index (fourth entry because of
alphabetic ordering).

I export the project and check the helpData.xml file is contained in the
jar which it is. I run the product and the entry is still fourth in the
list.

What am I doing wrong?

<extensions>
<tocOrder>
<toc id="/com.mitel.swb.help/toc.xml"/>
</tocOrder>
</extensions>

Preferences node = new DefaultScope().getNode("org.eclipse.help.base");
//$NON-NLS-1$
node.put("help_home", "/com.mitel.swb/content/welcome.html");
//$NON-NLS-1$ //$NON-NLS-2$

node = new DefaultScope().getNode("org.eclipse.help"); //$NON-NLS-1$
node.put("HELP_DATA", "/com.mitel.swb/helpData.xml"); //$NON-NLS-1$
//$NON-NLS-2$
--=_alternative 0033D293802574B4_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">I have added the following nodes in
my RCP </font><font size=2 face="Courier New">ApplicationWorkbenchAdvisor</font><font size=2 face="sans-serif">
class (see below). Welcome works fine but it is not recognising the helpData.
I don't use a plugin_customisation file so programmatically add the nodes.</font>
<br>
<br><font size=2 face="sans-serif">In the root of the project (which is
the main rcp project plugin) I have a helpData.xml file with the following
contents. I want the main application help contents to appear first followed
by the other help tocs. The main help toc is in the com.mitel.swb.help
project called toc.xml and is marked as primary and appears in the help
index (fourth entry because of alphabetic ordering).</font>
<br>
<br><font size=2 face="sans-serif">I export the project and check the helpData.xml
file is contained in the jar which it is. I run the product and the entry
is still fourth in the list.</font>
<br>
<br><font size=2 face="sans-serif">What am I doing wrong?</font>
<br>
<br><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">extensions</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp;</font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">tocOrder</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">toc
</font><font size=2 color=#800080 face="Courier New">id</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;/com.mitel.swb.help/toc.xml&quot;</font ><font size=2 color=#008080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp;</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">tocOrder</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">extensions</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="Courier New">Preferences node = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
DefaultScope().getNode(</font><font size=2 color=#4200ff face="Courier New">&quot;org.eclipse.help.base&quot;</font><font size=2 face="Courier New">);
</font><font size=2 color=#3f8080 face="Courier New">//$NON-NLS-1$</font>
<br><font size=2 face="Courier New">node.put(</font><font size=2 color=#4200ff face="Courier New">&quot;help_home&quot;</font><font size=2 face="Courier New">,
</font><font size=2 color=#4200ff face="Courier New">&quot;/com.mitel.swb/content/welcome.html&quot; </font><font size=2 face="Courier New">);
</font><font size=2 color=#3f8080 face="Courier New">//$NON-NLS-1$ //$NON-NLS-2$</font>
<br>
<br><font size=2 face="Courier New">node = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
DefaultScope().getNode(</font><font size=2 color=#4200ff face="Courier New">&quot;org.eclipse.help&quot;</font><font size=2 face="Courier New">);
</font><font size=2 color=#3f8080 face="Courier New">//$NON-NLS-1$</font>
<br><font size=2 face="Courier New">node.put(</font><font size=2 color=#4200ff face="Courier New">&quot;HELP_DATA&quot;</font><font size=2 face="Courier New">,
</font><font size=2 color=#4200ff face="Courier New">&quot;/com.mitel.swb/helpData.xml&quot;</font ><font size=2 face="Courier New">);
</font><font size=2 color=#3f8080 face="Courier New">//$NON-NLS-1$ //$NON-NLS-2$</font>
--=_alternative 0033D293802574B4_=--
Previous Topic:Re: InfoCenter Exception
Next Topic:Welcome screen html
Goto Forum:
  


Current Time: Sat Apr 20 06:12:31 GMT 2024

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

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

Back to the top